From: Tetsuo Handa Date: Tue, 4 Feb 2020 04:08:44 +0000 (+0900) Subject: kconfig: Invalidate all symbols after changing to y or m. X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=2391e7e514785584c32defb9a15d82c1dab837fa;hp=9a45cdc7b5c5362610ccd1915268cd1f0c73b3e0;p=carl9170fw.git 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 Signed-off-by: Masahiro Yamada Signed-off-by: Christian Lamparter --- diff --git a/config/confdata.c b/config/confdata.c index ba66634..d635eff 100644 --- a/config/confdata.c +++ b/config/confdata.c @@ -1399,9 +1399,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(); }