OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad0cd62
)
arch/powerpc/boot/addRamDisk.c: Mark several internal functions static
author
Josh Triplett
<josh@joshtriplett.org>
Fri, 16 Oct 2009 21:52:05 +0000
(14:52 -0700)
committer
Josh 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
patch
|
blob
|
history
diff --git
a/arch/powerpc/boot/addRamDisk.c
b/arch/powerpc/boot/addRamDisk.c
index
c02a999
..
893f446
100644
(file)
--- a/
arch/powerpc/boot/addRamDisk.c
+++ b/
arch/powerpc/boot/addRamDisk.c
@@
-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);