Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c843e315
Commit
c843e315
authored
Oct 16, 2009
by
Josh Triplett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch/sparc/boot/*.c: Mark various internal functions static
Signed-off-by:
Josh Triplett
<
josh@joshtriplett.org
>
parent
95981e7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
arch/sparc/boot/btfixupprep.c
arch/sparc/boot/btfixupprep.c
+4
-4
arch/sparc/boot/piggyback_32.c
arch/sparc/boot/piggyback_32.c
+5
-5
arch/sparc/boot/piggyback_64.c
arch/sparc/boot/piggyback_64.c
+1
-1
No files found.
arch/sparc/boot/btfixupprep.c
View file @
c843e315
...
@@ -61,14 +61,14 @@ unsigned long lastfoffset = -1;
...
@@ -61,14 +61,14 @@ unsigned long lastfoffset = -1;
unsigned
long
lastfrelno
;
unsigned
long
lastfrelno
;
btfixup
*
lastf
;
btfixup
*
lastf
;
void
fatal
(
void
)
__attribute__
((
noreturn
));
static
void
fatal
(
void
)
__attribute__
((
noreturn
));
void
fatal
(
void
)
static
void
fatal
(
void
)
{
{
fprintf
(
stderr
,
"Malformed output from objdump
\n
%s
\n
"
,
buffer
);
fprintf
(
stderr
,
"Malformed output from objdump
\n
%s
\n
"
,
buffer
);
exit
(
1
);
exit
(
1
);
}
}
btfixup
*
find
(
int
type
,
char
*
name
)
static
btfixup
*
find
(
int
type
,
char
*
name
)
{
{
int
i
;
int
i
;
for
(
i
=
0
;
i
<
last
;
i
++
)
{
for
(
i
=
0
;
i
<
last
;
i
++
)
{
...
@@ -88,7 +88,7 @@ btfixup *find(int type, char *name)
...
@@ -88,7 +88,7 @@ btfixup *find(int type, char *name)
return
array
+
last
-
1
;
return
array
+
last
-
1
;
}
}
void
set_mode
(
char
*
buffer
)
static
void
set_mode
(
char
*
buffer
)
{
{
for
(
mode
=
0
;;
mode
++
)
for
(
mode
=
0
;;
mode
++
)
if
(
buffer
[
mode
]
<
'0'
||
buffer
[
mode
]
>
'9'
)
if
(
buffer
[
mode
]
<
'0'
||
buffer
[
mode
]
>
'9'
)
...
...
arch/sparc/boot/piggyback_32.c
View file @
c843e315
...
@@ -35,17 +35,17 @@
...
@@ -35,17 +35,17 @@
* as PROM looks for a.out image only.
* as PROM looks for a.out image only.
*/
*/
unsigned
short
ld2
(
char
*
p
)
static
unsigned
short
ld2
(
char
*
p
)
{
{
return
(
p
[
0
]
<<
8
)
|
p
[
1
];
return
(
p
[
0
]
<<
8
)
|
p
[
1
];
}
}
unsigned
int
ld4
(
char
*
p
)
static
unsigned
int
ld4
(
char
*
p
)
{
{
return
(
p
[
0
]
<<
24
)
|
(
p
[
1
]
<<
16
)
|
(
p
[
2
]
<<
8
)
|
p
[
3
];
return
(
p
[
0
]
<<
24
)
|
(
p
[
1
]
<<
16
)
|
(
p
[
2
]
<<
8
)
|
p
[
3
];
}
}
void
st4
(
char
*
p
,
unsigned
int
x
)
static
void
st4
(
char
*
p
,
unsigned
int
x
)
{
{
p
[
0
]
=
x
>>
24
;
p
[
0
]
=
x
>>
24
;
p
[
1
]
=
x
>>
16
;
p
[
1
]
=
x
>>
16
;
...
@@ -53,7 +53,7 @@ void st4(char *p, unsigned int x)
...
@@ -53,7 +53,7 @@ void st4(char *p, unsigned int x)
p
[
3
]
=
x
;
p
[
3
]
=
x
;
}
}
void
usage
(
void
)
static
void
usage
(
void
)
{
{
/* fs_img.gz is an image of initial ramdisk. */
/* fs_img.gz is an image of initial ramdisk. */
fprintf
(
stderr
,
"Usage: piggyback vmlinux.aout System.map fs_img.gz
\n
"
);
fprintf
(
stderr
,
"Usage: piggyback vmlinux.aout System.map fs_img.gz
\n
"
);
...
@@ -61,7 +61,7 @@ void usage(void)
...
@@ -61,7 +61,7 @@ void usage(void)
exit
(
1
);
exit
(
1
);
}
}
void
die
(
char
*
str
)
static
void
die
(
char
*
str
)
{
{
perror
(
str
);
perror
(
str
);
exit
(
1
);
exit
(
1
);
...
...
arch/sparc/boot/piggyback_64.c
View file @
c843e315
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
/* Note: run this on an a.out kernel (use elftoaout for it), as PROM looks for a.out image onlly
/* Note: run this on an a.out kernel (use elftoaout for it), as PROM looks for a.out image onlly
usage: piggyback vmlinux System.map tail, where tail is gzipped fs of the initial ramdisk */
usage: piggyback vmlinux System.map tail, where tail is gzipped fs of the initial ramdisk */
void
die
(
char
*
str
)
static
void
die
(
char
*
str
)
{
{
perror
(
str
);
perror
(
str
);
exit
(
1
);
exit
(
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment