Skip to content

Commit

Permalink
arch/sparc/boot/*.c: Mark various internal functions static
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
  • Loading branch information
Josh Triplett committed Nov 15, 2009
1 parent 95981e7 commit c843e31
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions arch/sparc/boot/btfixupprep.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ unsigned long lastfoffset = -1;
unsigned long lastfrelno;
btfixup *lastf;

void fatal(void) __attribute__((noreturn));
void fatal(void)
static void fatal(void) __attribute__((noreturn));
static void fatal(void)
{
fprintf(stderr, "Malformed output from objdump\n%s\n", buffer);
exit(1);
}

btfixup *find(int type, char *name)
static btfixup *find(int type, char *name)
{
int i;
for (i = 0; i < last; i++) {
Expand All @@ -88,7 +88,7 @@ btfixup *find(int type, char *name)
return array + last - 1;
}

void set_mode (char *buffer)
static void set_mode (char *buffer)
{
for (mode = 0;; mode++)
if (buffer[mode] < '0' || buffer[mode] > '9')
Expand Down
10 changes: 5 additions & 5 deletions arch/sparc/boot/piggyback_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,33 +35,33 @@
* 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];
}

unsigned int ld4(char *p)
static unsigned int ld4(char *p)
{
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[1] = x >> 16;
p[2] = x >> 8;
p[3] = x;
}

void usage(void)
static void usage(void)
{
/* fs_img.gz is an image of initial ramdisk. */
fprintf(stderr, "Usage: piggyback vmlinux.aout System.map fs_img.gz\n");
fprintf(stderr, "\tKernel image will be modified in place.\n");
exit(1);
}

void die(char *str)
static void die(char *str)
{
perror (str);
exit(1);
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/boot/piggyback_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
/* 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 */

void die(char *str)
static void die(char *str)
{
perror (str);
exit(1);
Expand Down

0 comments on commit c843e31

Please sign in to comment.