diff options
author | Karsten Wiese <annabellesgarden@yahoo.de> | 2006-12-13 03:34:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-13 12:05:48 -0500 |
commit | bfc10001b11e51b59ac901d17c5f05361bd2351d (patch) | |
tree | eee8c1ed8f7ec7389656ee5bedd087b3ccee2b9a /scripts/kconfig/symbol.c | |
parent | b321429325e4c911c379a5bf4156c9fc9713e425 (diff) |
[PATCH] kconfig: make sym_change_count static, let it be altered by 2 functions only
Those two functions are
void sym_set_change_count(int count)
and
void sym_add_change_count(int count)
All write accesses to sym_change_count are replaced by calls to above
functions.
Variable and changer-functions are moved to confdata.c. IMO thats ok, as
sym_change_count is an attribute of the .config's change state.
Signed-off-by: Karsten Wiese <fzu@wemgehoertderstaat.de>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts/kconfig/symbol.c')
-rw-r--r-- | scripts/kconfig/symbol.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index ee225ced2ce4..8f06c474d800 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c | |||
@@ -30,7 +30,6 @@ struct symbol symbol_yes = { | |||
30 | .flags = SYMBOL_VALID, | 30 | .flags = SYMBOL_VALID, |
31 | }; | 31 | }; |
32 | 32 | ||
33 | int sym_change_count; | ||
34 | struct symbol *sym_defconfig_list; | 33 | struct symbol *sym_defconfig_list; |
35 | struct symbol *modules_sym; | 34 | struct symbol *modules_sym; |
36 | tristate modules_val; | 35 | tristate modules_val; |
@@ -379,7 +378,7 @@ void sym_clear_all_valid(void) | |||
379 | 378 | ||
380 | for_all_symbols(i, sym) | 379 | for_all_symbols(i, sym) |
381 | sym->flags &= ~SYMBOL_VALID; | 380 | sym->flags &= ~SYMBOL_VALID; |
382 | sym_change_count++; | 381 | sym_add_change_count(1); |
383 | if (modules_sym) | 382 | if (modules_sym) |
384 | sym_calc_value(modules_sym); | 383 | sym_calc_value(modules_sym); |
385 | } | 384 | } |