diff options
author | Michal Marek <mmarek@suse.cz> | 2015-02-24 10:37:13 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2015-02-25 09:00:17 -0500 |
commit | ad8d40cda3ad22ad9e8863d55a5c88f85c0173f0 (patch) | |
tree | dda16c06e987fb9ac7177ea58fa88957cbe46f0f /scripts/kconfig/symbol.c | |
parent | 463157444e377bf9b279101b1f16a94c4648c03a (diff) |
kconfig: Remove unnecessary prototypes from headers
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig/symbol.c')
-rw-r--r-- | scripts/kconfig/symbol.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index 7caabdb51c64..6731377f9bb2 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c | |||
@@ -112,7 +112,7 @@ struct property *sym_get_env_prop(struct symbol *sym) | |||
112 | return NULL; | 112 | return NULL; |
113 | } | 113 | } |
114 | 114 | ||
115 | struct property *sym_get_default_prop(struct symbol *sym) | 115 | static struct property *sym_get_default_prop(struct symbol *sym) |
116 | { | 116 | { |
117 | struct property *prop; | 117 | struct property *prop; |
118 | 118 | ||
@@ -186,6 +186,26 @@ static void sym_validate_range(struct symbol *sym) | |||
186 | sym->curr.val = strdup(str); | 186 | sym->curr.val = strdup(str); |
187 | } | 187 | } |
188 | 188 | ||
189 | static void sym_set_changed(struct symbol *sym) | ||
190 | { | ||
191 | struct property *prop; | ||
192 | |||
193 | sym->flags |= SYMBOL_CHANGED; | ||
194 | for (prop = sym->prop; prop; prop = prop->next) { | ||
195 | if (prop->menu) | ||
196 | prop->menu->flags |= MENU_CHANGED; | ||
197 | } | ||
198 | } | ||
199 | |||
200 | static void sym_set_all_changed(void) | ||
201 | { | ||
202 | struct symbol *sym; | ||
203 | int i; | ||
204 | |||
205 | for_all_symbols(i, sym) | ||
206 | sym_set_changed(sym); | ||
207 | } | ||
208 | |||
189 | static void sym_calc_visibility(struct symbol *sym) | 209 | static void sym_calc_visibility(struct symbol *sym) |
190 | { | 210 | { |
191 | struct property *prop; | 211 | struct property *prop; |
@@ -451,26 +471,6 @@ void sym_clear_all_valid(void) | |||
451 | sym_calc_value(modules_sym); | 471 | sym_calc_value(modules_sym); |
452 | } | 472 | } |
453 | 473 | ||
454 | void sym_set_changed(struct symbol *sym) | ||
455 | { | ||
456 | struct property *prop; | ||
457 | |||
458 | sym->flags |= SYMBOL_CHANGED; | ||
459 | for (prop = sym->prop; prop; prop = prop->next) { | ||
460 | if (prop->menu) | ||
461 | prop->menu->flags |= MENU_CHANGED; | ||
462 | } | ||
463 | } | ||
464 | |||
465 | void sym_set_all_changed(void) | ||
466 | { | ||
467 | struct symbol *sym; | ||
468 | int i; | ||
469 | |||
470 | for_all_symbols(i, sym) | ||
471 | sym_set_changed(sym); | ||
472 | } | ||
473 | |||
474 | bool sym_tristate_within_range(struct symbol *sym, tristate val) | 474 | bool sym_tristate_within_range(struct symbol *sym, tristate val) |
475 | { | 475 | { |
476 | int type = sym_get_type(sym); | 476 | int type = sym_get_type(sym); |