summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>2020-02-04 13:08:44 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2020-02-05 13:45:37 +0900
commit089b7d890f972f6b649fedc9259f6b93a18fb970 (patch)
treeec5c05f3527a5a6b5053b88ab6b1bedc2a6f51fe /scripts
parentcde26a6e17ec36f6f20102a7e5767c2a0096c95f (diff)
downloadlinux-089b7d890f972f6b649fedc9259f6b93a18fb970.tar.bz2
kconfig: Invalidate all symbols after changing to y or m.
Since commit 89b9060987d9 ("kconfig: Add yes2modconfig and mod2yesconfig targets.") forgot to clear SYMBOL_VALID bit after changing to y or m, these targets did not save the changes. Call sym_clear_all_valid() so that all symbols are revalidated. Fixes: 89b9060987d9 ("kconfig: Add yes2modconfig and mod2yesconfig targets.") Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/confdata.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index 63d307b0d1ac..a39d93e3c6ae 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -1331,9 +1331,8 @@ void conf_rewrite_mod_or_yes(enum conf_def_mode mode)
for_all_symbols(i, sym) {
if (sym_get_type(sym) == S_TRISTATE &&
- sym->def[S_DEF_USER].tri == old_val) {
+ sym->def[S_DEF_USER].tri == old_val)
sym->def[S_DEF_USER].tri = new_val;
- sym_add_change_count(1);
- }
}
+ sym_clear_all_valid();
}