diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2009-10-16 17:58:29 -0400 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2009-11-15 18:01:40 -0500 |
| commit | c843e315469a1519b83835628ca8906daf9a2c0a (patch) | |
| tree | a08dc1f9695d3ee3b2b8c6105bc19262f2f80d92 | |
| parent | 95981e7de53a7c67dc32d7440c160947c134d8eb (diff) | |
arch/sparc/boot/*.c: Mark various internal functions static
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
| -rw-r--r-- | arch/sparc/boot/btfixupprep.c | 8 | ||||
| -rw-r--r-- | arch/sparc/boot/piggyback_32.c | 10 | ||||
| -rw-r--r-- | arch/sparc/boot/piggyback_64.c | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/arch/sparc/boot/btfixupprep.c b/arch/sparc/boot/btfixupprep.c index 52a4208fe4f0..bbf91b9c3d39 100644 --- a/arch/sparc/boot/btfixupprep.c +++ b/arch/sparc/boot/btfixupprep.c | |||
| @@ -61,14 +61,14 @@ unsigned long lastfoffset = -1; | |||
| 61 | unsigned long lastfrelno; | 61 | unsigned long lastfrelno; |
| 62 | btfixup *lastf; | 62 | btfixup *lastf; |
| 63 | 63 | ||
| 64 | void fatal(void) __attribute__((noreturn)); | 64 | static void fatal(void) __attribute__((noreturn)); |
| 65 | void fatal(void) | 65 | static void fatal(void) |
| 66 | { | 66 | { |
| 67 | fprintf(stderr, "Malformed output from objdump\n%s\n", buffer); | 67 | fprintf(stderr, "Malformed output from objdump\n%s\n", buffer); |
| 68 | exit(1); | 68 | exit(1); |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | btfixup *find(int type, char *name) | 71 | static btfixup *find(int type, char *name) |
| 72 | { | 72 | { |
| 73 | int i; | 73 | int i; |
| 74 | for (i = 0; i < last; i++) { | 74 | for (i = 0; i < last; i++) { |
| @@ -88,7 +88,7 @@ btfixup *find(int type, char *name) | |||
| 88 | return array + last - 1; | 88 | return array + last - 1; |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | void set_mode (char *buffer) | 91 | static void set_mode (char *buffer) |
| 92 | { | 92 | { |
| 93 | for (mode = 0;; mode++) | 93 | for (mode = 0;; mode++) |
| 94 | if (buffer[mode] < '0' || buffer[mode] > '9') | 94 | if (buffer[mode] < '0' || buffer[mode] > '9') |
diff --git a/arch/sparc/boot/piggyback_32.c b/arch/sparc/boot/piggyback_32.c index e8dc9adfcd61..ac944aec7301 100644 --- a/arch/sparc/boot/piggyback_32.c +++ b/arch/sparc/boot/piggyback_32.c | |||
| @@ -35,17 +35,17 @@ | |||
| 35 | * as PROM looks for a.out image only. | 35 | * as PROM looks for a.out image only. |
| 36 | */ | 36 | */ |
| 37 | 37 | ||
| 38 | unsigned short ld2(char *p) | 38 | static unsigned short ld2(char *p) |
| 39 | { | 39 | { |
| 40 | return (p[0] << 8) | p[1]; | 40 | return (p[0] << 8) | p[1]; |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | unsigned int ld4(char *p) | 43 | static unsigned int ld4(char *p) |
| 44 | { | 44 | { |
| 45 | return (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]; | 45 | return (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3]; |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void st4(char *p, unsigned int x) | 48 | static void st4(char *p, unsigned int x) |
| 49 | { | 49 | { |
| 50 | p[0] = x >> 24; | 50 | p[0] = x >> 24; |
| 51 | p[1] = x >> 16; | 51 | p[1] = x >> 16; |
| @@ -53,7 +53,7 @@ void st4(char *p, unsigned int x) | |||
| 53 | p[3] = x; | 53 | p[3] = x; |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | void usage(void) | 56 | static void usage(void) |
| 57 | { | 57 | { |
| 58 | /* fs_img.gz is an image of initial ramdisk. */ | 58 | /* fs_img.gz is an image of initial ramdisk. */ |
| 59 | fprintf(stderr, "Usage: piggyback vmlinux.aout System.map fs_img.gz\n"); | 59 | fprintf(stderr, "Usage: piggyback vmlinux.aout System.map fs_img.gz\n"); |
| @@ -61,7 +61,7 @@ void usage(void) | |||
| 61 | exit(1); | 61 | exit(1); |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | void die(char *str) | 64 | static void die(char *str) |
| 65 | { | 65 | { |
| 66 | perror (str); | 66 | perror (str); |
| 67 | exit(1); | 67 | exit(1); |
diff --git a/arch/sparc/boot/piggyback_64.c b/arch/sparc/boot/piggyback_64.c index c63fd1b6bdd4..a26a686cb5aa 100644 --- a/arch/sparc/boot/piggyback_64.c +++ b/arch/sparc/boot/piggyback_64.c | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | /* Note: run this on an a.out kernel (use elftoaout for it), as PROM looks for a.out image onlly | 32 | /* Note: run this on an a.out kernel (use elftoaout for it), as PROM looks for a.out image onlly |
| 33 | usage: piggyback vmlinux System.map tail, where tail is gzipped fs of the initial ramdisk */ | 33 | usage: piggyback vmlinux System.map tail, where tail is gzipped fs of the initial ramdisk */ |
| 34 | 34 | ||
| 35 | void die(char *str) | 35 | static void die(char *str) |
| 36 | { | 36 | { |
| 37 | perror (str); | 37 | perror (str); |
| 38 | exit(1); | 38 | exit(1); |
