Commit 5c725138437837291db5c25f4a076ee852e806e3
Committed by
Linus Torvalds
1 parent
e898893399
Exists in
master
and in
20 other branches
Fix all -Wmissing-prototypes warnings in x86 defconfig
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>
Showing 4 changed files with 8 additions and 8 deletions Side-by-side Diff
scripts/conmakehash.c
... | ... | @@ -24,14 +24,14 @@ |
24 | 24 | |
25 | 25 | typedef unsigned short unicode; |
26 | 26 | |
27 | -void usage(char *argv0) | |
27 | +static void usage(char *argv0) | |
28 | 28 | { |
29 | 29 | fprintf(stderr, "Usage: \n" |
30 | 30 | " %s chartable [hashsize] [hashstep] [maxhashlevel]\n", argv0); |
31 | 31 | exit(EX_USAGE); |
32 | 32 | } |
33 | 33 | |
34 | -int getunicode(char **p0) | |
34 | +static int getunicode(char **p0) | |
35 | 35 | { |
36 | 36 | char *p = *p0; |
37 | 37 | |
... | ... | @@ -49,7 +49,7 @@ |
49 | 49 | /* Massive overkill, but who cares? */ |
50 | 50 | int unicount[MAX_FONTLEN]; |
51 | 51 | |
52 | -void addpair(int fp, int un) | |
52 | +static void addpair(int fp, int un) | |
53 | 53 | { |
54 | 54 | int i; |
55 | 55 |
scripts/mod/modpost.c
... | ... | @@ -691,7 +691,7 @@ |
691 | 691 | * The $ syntax is for sections where ld append a dot number |
692 | 692 | * to make section name unique. |
693 | 693 | */ |
694 | -int match(const char *sym, const char * const pat[]) | |
694 | +static int match(const char *sym, const char * const pat[]) | |
695 | 695 | { |
696 | 696 | const char *p; |
697 | 697 | while (*pat) { |
... | ... | @@ -1746,7 +1746,7 @@ |
1746 | 1746 | buf_printf(b, "};\n"); |
1747 | 1747 | } |
1748 | 1748 | |
1749 | -void add_staging_flag(struct buffer *b, const char *name) | |
1749 | +static void add_staging_flag(struct buffer *b, const char *name) | |
1750 | 1750 | { |
1751 | 1751 | static const char *staging_dir = "drivers/staging"; |
1752 | 1752 |
scripts/selinux/mdp/mdp.c
... | ... | @@ -31,13 +31,13 @@ |
31 | 31 | |
32 | 32 | #include "flask.h" |
33 | 33 | |
34 | -void usage(char *name) | |
34 | +static void usage(char *name) | |
35 | 35 | { |
36 | 36 | printf("usage: %s [-m] policy_file context_file\n", name); |
37 | 37 | exit(1); |
38 | 38 | } |
39 | 39 | |
40 | -void find_common_name(char *cname, char *dest, int len) | |
40 | +static void find_common_name(char *cname, char *dest, int len) | |
41 | 41 | { |
42 | 42 | char *start, *end; |
43 | 43 |