Commit 5c725138 authored by Trevor Keith's avatar Trevor Keith Committed by Linus Torvalds

Fix all -Wmissing-prototypes warnings in x86 defconfig

Signed-off-by: default avatarTrevor Keith <tsrk@tsrk.net>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e8988933
...@@ -24,14 +24,14 @@ ...@@ -24,14 +24,14 @@
typedef unsigned short unicode; typedef unsigned short unicode;
void usage(char *argv0) static void usage(char *argv0)
{ {
fprintf(stderr, "Usage: \n" fprintf(stderr, "Usage: \n"
" %s chartable [hashsize] [hashstep] [maxhashlevel]\n", argv0); " %s chartable [hashsize] [hashstep] [maxhashlevel]\n", argv0);
exit(EX_USAGE); exit(EX_USAGE);
} }
int getunicode(char **p0) static int getunicode(char **p0)
{ {
char *p = *p0; char *p = *p0;
...@@ -49,7 +49,7 @@ unicode unitable[MAX_FONTLEN][255]; ...@@ -49,7 +49,7 @@ unicode unitable[MAX_FONTLEN][255];
/* Massive overkill, but who cares? */ /* Massive overkill, but who cares? */
int unicount[MAX_FONTLEN]; int unicount[MAX_FONTLEN];
void addpair(int fp, int un) static void addpair(int fp, int un)
{ {
int i; int i;
......
...@@ -691,7 +691,7 @@ static int number_prefix(const char *sym) ...@@ -691,7 +691,7 @@ static int number_prefix(const char *sym)
* The $ syntax is for sections where ld append a dot number * The $ syntax is for sections where ld append a dot number
* to make section name unique. * to make section name unique.
*/ */
int match(const char *sym, const char * const pat[]) static int match(const char *sym, const char * const pat[])
{ {
const char *p; const char *p;
while (*pat) { while (*pat) {
...@@ -1746,7 +1746,7 @@ static void add_header(struct buffer *b, struct module *mod) ...@@ -1746,7 +1746,7 @@ static void add_header(struct buffer *b, struct module *mod)
buf_printf(b, "};\n"); buf_printf(b, "};\n");
} }
void add_staging_flag(struct buffer *b, const char *name) static void add_staging_flag(struct buffer *b, const char *name)
{ {
static const char *staging_dir = "drivers/staging"; static const char *staging_dir = "drivers/staging";
......
...@@ -31,13 +31,13 @@ ...@@ -31,13 +31,13 @@
#include "flask.h" #include "flask.h"
void usage(char *name) static void usage(char *name)
{ {
printf("usage: %s [-m] policy_file context_file\n", name); printf("usage: %s [-m] policy_file context_file\n", name);
exit(1); exit(1);
} }
void find_common_name(char *cname, char *dest, int len) static void find_common_name(char *cname, char *dest, int len)
{ {
char *start, *end; char *start, *end;
......
...@@ -446,7 +446,7 @@ static int cpio_mkfile_line(const char *line) ...@@ -446,7 +446,7 @@ static int cpio_mkfile_line(const char *line)
return rc; return rc;
} }
void usage(const char *prog) static void usage(const char *prog)
{ {
fprintf(stderr, "Usage:\n" fprintf(stderr, "Usage:\n"
"\t%s <cpio_list>\n" "\t%s <cpio_list>\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment