diff options
| author | Trevor Keith <tsrk@tsrk.net> | 2009-09-18 15:49:23 -0400 |
|---|---|---|
| committer | Sam Ravnborg <sam@ravnborg.org> | 2009-09-20 06:27:44 -0400 |
| commit | 4356f4890792a678936c93c9196e8f7742e04535 (patch) | |
| tree | 6c64cbb77de98dfc45e4330632e6f8b27f50ef04 /scripts/kconfig | |
| parent | 66a570623be0d96130470a41cd38bce889b7e885 (diff) | |
kbuild: add static to prototypes
Warnings found via gcc -Wmissing-prototypes.
Signed-off-by: Trevor Keith <tsrk@tsrk.net>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig')
| -rw-r--r-- | scripts/kconfig/conf.c | 2 | ||||
| -rw-r--r-- | scripts/kconfig/confdata.c | 2 | ||||
| -rw-r--r-- | scripts/kconfig/expr.c | 4 | ||||
| -rw-r--r-- | scripts/kconfig/kxgettext.c | 4 | ||||
| -rw-r--r-- | scripts/kconfig/menu.c | 4 | ||||
| -rw-r--r-- | scripts/kconfig/symbol.c | 6 |
6 files changed, 11 insertions, 11 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 5de3303e65f5..9960d1c303f8 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c | |||
| @@ -121,7 +121,7 @@ static int conf_askvalue(struct symbol *sym, const char *def) | |||
| 121 | return 1; | 121 | return 1; |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | int conf_string(struct menu *menu) | 124 | static int conf_string(struct menu *menu) |
| 125 | { | 125 | { |
| 126 | struct symbol *sym = menu->sym; | 126 | struct symbol *sym = menu->sym; |
| 127 | const char *def; | 127 | const char *def; |
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index a04da3459f0f..b55e72ff2fc6 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c | |||
| @@ -560,7 +560,7 @@ int conf_write(const char *name) | |||
| 560 | return 0; | 560 | return 0; |
| 561 | } | 561 | } |
| 562 | 562 | ||
| 563 | int conf_split_config(void) | 563 | static int conf_split_config(void) |
| 564 | { | 564 | { |
| 565 | const char *name; | 565 | const char *name; |
| 566 | char path[128]; | 566 | char path[128]; |
diff --git a/scripts/kconfig/expr.c b/scripts/kconfig/expr.c index cd8a2f00a97e..edd3f39a080a 100644 --- a/scripts/kconfig/expr.c +++ b/scripts/kconfig/expr.c | |||
| @@ -348,7 +348,7 @@ struct expr *expr_trans_bool(struct expr *e) | |||
| 348 | /* | 348 | /* |
| 349 | * e1 || e2 -> ? | 349 | * e1 || e2 -> ? |
| 350 | */ | 350 | */ |
| 351 | struct expr *expr_join_or(struct expr *e1, struct expr *e2) | 351 | static struct expr *expr_join_or(struct expr *e1, struct expr *e2) |
| 352 | { | 352 | { |
| 353 | struct expr *tmp; | 353 | struct expr *tmp; |
| 354 | struct symbol *sym1, *sym2; | 354 | struct symbol *sym1, *sym2; |
| @@ -412,7 +412,7 @@ struct expr *expr_join_or(struct expr *e1, struct expr *e2) | |||
| 412 | return NULL; | 412 | return NULL; |
| 413 | } | 413 | } |
| 414 | 414 | ||
| 415 | struct expr *expr_join_and(struct expr *e1, struct expr *e2) | 415 | static struct expr *expr_join_and(struct expr *e1, struct expr *e2) |
| 416 | { | 416 | { |
| 417 | struct expr *tmp; | 417 | struct expr *tmp; |
| 418 | struct symbol *sym1, *sym2; | 418 | struct symbol *sym1, *sym2; |
diff --git a/scripts/kconfig/kxgettext.c b/scripts/kconfig/kxgettext.c index 8d9ce22b0fc5..dcc3fcc0cc9a 100644 --- a/scripts/kconfig/kxgettext.c +++ b/scripts/kconfig/kxgettext.c | |||
| @@ -166,7 +166,7 @@ static int message__add(const char *msg, char *option, char *file, int lineno) | |||
| 166 | return rc; | 166 | return rc; |
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | void menu_build_message_list(struct menu *menu) | 169 | static void menu_build_message_list(struct menu *menu) |
| 170 | { | 170 | { |
| 171 | struct menu *child; | 171 | struct menu *child; |
| 172 | 172 | ||
| @@ -211,7 +211,7 @@ static void message__print_gettext_msgid_msgstr(struct message *self) | |||
| 211 | "msgstr \"\"\n", self->msg); | 211 | "msgstr \"\"\n", self->msg); |
| 212 | } | 212 | } |
| 213 | 213 | ||
| 214 | void menu__xgettext(void) | 214 | static void menu__xgettext(void) |
| 215 | { | 215 | { |
| 216 | struct message *m = message__list; | 216 | struct message *m = message__list; |
| 217 | 217 | ||
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index b74f74687005..059a2465c574 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c | |||
| @@ -77,7 +77,7 @@ void menu_end_menu(void) | |||
| 77 | current_menu = current_menu->parent; | 77 | current_menu = current_menu->parent; |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | struct expr *menu_check_dep(struct expr *e) | 80 | static struct expr *menu_check_dep(struct expr *e) |
| 81 | { | 81 | { |
| 82 | if (!e) | 82 | if (!e) |
| 83 | return e; | 83 | return e; |
| @@ -187,7 +187,7 @@ static int menu_range_valid_sym(struct symbol *sym, struct symbol *sym2) | |||
| 187 | (sym2->type == S_UNKNOWN && sym_string_valid(sym, sym2->name)); | 187 | (sym2->type == S_UNKNOWN && sym_string_valid(sym, sym2->name)); |
| 188 | } | 188 | } |
| 189 | 189 | ||
| 190 | void sym_check_prop(struct symbol *sym) | 190 | static void sym_check_prop(struct symbol *sym) |
| 191 | { | 191 | { |
| 192 | struct property *prop; | 192 | struct property *prop; |
| 193 | struct symbol *sym2; | 193 | struct symbol *sym2; |
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index 18f3e5c33634..6c8fbbb66ebc 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c | |||
| @@ -36,7 +36,7 @@ tristate modules_val; | |||
| 36 | 36 | ||
| 37 | struct expr *sym_env_list; | 37 | struct expr *sym_env_list; |
| 38 | 38 | ||
| 39 | void sym_add_default(struct symbol *sym, const char *def) | 39 | static void sym_add_default(struct symbol *sym, const char *def) |
| 40 | { | 40 | { |
| 41 | struct property *prop = prop_alloc(P_DEFAULT, sym); | 41 | struct property *prop = prop_alloc(P_DEFAULT, sym); |
| 42 | 42 | ||
| @@ -125,7 +125,7 @@ struct property *sym_get_default_prop(struct symbol *sym) | |||
| 125 | return NULL; | 125 | return NULL; |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | struct property *sym_get_range_prop(struct symbol *sym) | 128 | static struct property *sym_get_range_prop(struct symbol *sym) |
| 129 | { | 129 | { |
| 130 | struct property *prop; | 130 | struct property *prop; |
| 131 | 131 | ||
| @@ -943,7 +943,7 @@ const char *prop_get_type_name(enum prop_type type) | |||
| 943 | return "unknown"; | 943 | return "unknown"; |
| 944 | } | 944 | } |
| 945 | 945 | ||
| 946 | void prop_add_env(const char *env) | 946 | static void prop_add_env(const char *env) |
| 947 | { | 947 | { |
| 948 | struct symbol *sym, *sym2; | 948 | struct symbol *sym, *sym2; |
| 949 | struct property *prop; | 949 | struct property *prop; |
