diff options
author | Ladinu Chandrasinghe <ladinu.pub@gmail.com> | 2009-09-22 19:43:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 10:39:28 -0400 |
commit | b7ed698cc9d556306a4088c238e2ea9311ea2cb3 (patch) | |
tree | b0aadfcf2d2c1c1454bdf8f194f7ff94e5d21c46 /Documentation/ia64 | |
parent | 912e837aef72a3dd263dafc3717d92bbc1211a53 (diff) |
Documentation/: fix warnings from -Wmissing-prototypes in HOSTCFLAGS
Fix up -Wmissing-prototypes in compileable userspace code, mainly under
Documentation/.
Signed-off-by: Ladinu Chandrasinghe <ladinu.pub@gmail.com>
Signed-off-by: Trevor Keith <tsrk@tsrk.net>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/ia64')
-rw-r--r-- | Documentation/ia64/aliasing-test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/ia64/aliasing-test.c b/Documentation/ia64/aliasing-test.c index d23610fb2ff9..3dfb76ca6931 100644 --- a/Documentation/ia64/aliasing-test.c +++ b/Documentation/ia64/aliasing-test.c | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | int sum; | 25 | int sum; |
26 | 26 | ||
27 | int map_mem(char *path, off_t offset, size_t length, int touch) | 27 | static int map_mem(char *path, off_t offset, size_t length, int touch) |
28 | { | 28 | { |
29 | int fd, rc; | 29 | int fd, rc; |
30 | void *addr; | 30 | void *addr; |
@@ -62,7 +62,7 @@ int map_mem(char *path, off_t offset, size_t length, int touch) | |||
62 | return 0; | 62 | return 0; |
63 | } | 63 | } |
64 | 64 | ||
65 | int scan_tree(char *path, char *file, off_t offset, size_t length, int touch) | 65 | static int scan_tree(char *path, char *file, off_t offset, size_t length, int touch) |
66 | { | 66 | { |
67 | struct dirent **namelist; | 67 | struct dirent **namelist; |
68 | char *name, *path2; | 68 | char *name, *path2; |
@@ -119,7 +119,7 @@ skip: | |||
119 | 119 | ||
120 | char buf[1024]; | 120 | char buf[1024]; |
121 | 121 | ||
122 | int read_rom(char *path) | 122 | static int read_rom(char *path) |
123 | { | 123 | { |
124 | int fd, rc; | 124 | int fd, rc; |
125 | size_t size = 0; | 125 | size_t size = 0; |
@@ -146,7 +146,7 @@ int read_rom(char *path) | |||
146 | return size; | 146 | return size; |
147 | } | 147 | } |
148 | 148 | ||
149 | int scan_rom(char *path, char *file) | 149 | static int scan_rom(char *path, char *file) |
150 | { | 150 | { |
151 | struct dirent **namelist; | 151 | struct dirent **namelist; |
152 | char *name, *path2; | 152 | char *name, *path2; |