Skip to content

Commit

Permalink
Fix all -Wmissing-prototypes warnings in x86 defconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Trevor Keith <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Trevor Keith authored and torvalds committed Sep 23, 2009
1 parent e898893 commit 5c72513
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions scripts/conmakehash.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@

typedef unsigned short unicode;

void usage(char *argv0)
static void usage(char *argv0)
{
fprintf(stderr, "Usage: \n"
" %s chartable [hashsize] [hashstep] [maxhashlevel]\n", argv0);
exit(EX_USAGE);
}

int getunicode(char **p0)
static int getunicode(char **p0)
{
char *p = *p0;

Expand All @@ -49,7 +49,7 @@ unicode unitable[MAX_FONTLEN][255];
/* Massive overkill, but who cares? */
int unicount[MAX_FONTLEN];

void addpair(int fp, int un)
static void addpair(int fp, int un)
{
int i;

Expand Down
4 changes: 2 additions & 2 deletions scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ static int number_prefix(const char *sym)
* The $ syntax is for sections where ld append a dot number
* 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;
while (*pat) {
Expand Down Expand Up @@ -1746,7 +1746,7 @@ static void add_header(struct buffer *b, struct module *mod)
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";

Expand Down
4 changes: 2 additions & 2 deletions scripts/selinux/mdp/mdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@

#include "flask.h"

void usage(char *name)
static void usage(char *name)
{
printf("usage: %s [-m] policy_file context_file\n", name);
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;

Expand Down
2 changes: 1 addition & 1 deletion usr/gen_init_cpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ static int cpio_mkfile_line(const char *line)
return rc;
}

void usage(const char *prog)
static void usage(const char *prog)
{
fprintf(stderr, "Usage:\n"
"\t%s <cpio_list>\n"
Expand Down

0 comments on commit 5c72513

Please sign in to comment.