]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
arch/powerpc/boot/addRamDisk.c: Mark several internal functions static
authorJosh Triplett <josh@joshtriplett.org>
Fri, 16 Oct 2009 21:52:05 +0000 (14:52 -0700)
committerJosh Triplett <josh@joshtriplett.org>
Sun, 15 Nov 2009 23:01:39 +0000 (15:01 -0800)
Nothing outside of arch/powerpc/boot/addRamDisk.c references the
functions "get4k", "put4k", or "death".

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
arch/powerpc/boot/addRamDisk.c

index c02a99952be7cdfa4f2c2b4061c6af58d8a2403f..893f446cbd22a15c9108d9e244a2ad148344d2db 100644 (file)
@@ -58,7 +58,7 @@ static int check_elf64(void *p, int size, struct addr_range *r)
 
        return 64;
 }
-void get4k(FILE *file, char *buf )
+static void get4k(FILE *file, char *buf )
 {
        unsigned j;
        unsigned num = fread(buf, 1, 4096, file);
@@ -66,12 +66,12 @@ void get4k(FILE *file, char *buf )
                buf[j] = 0;
 }
 
-void put4k(FILE *file, char *buf )
+static void put4k(FILE *file, char *buf )
 {
        fwrite(buf, 1, 4096, file);
 }
 
-void death(const char *msg, FILE *fdesc, const char *fname) 
+static void death(const char *msg, FILE *fdesc, const char *fname)
 {
        fprintf(stderr, msg);
        fclose(fdesc);