Skip to content

Commit 089b7d8

Browse files
Tetsuo Handamasahir0y
authored andcommitted
kconfig: Invalidate all symbols after changing to y or m.
Since commit 89b9060 ("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: 89b9060 ("kconfig: Add yes2modconfig and mod2yesconfig targets.") Signed-off-by: Tetsuo Handa <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent cde26a6 commit 089b7d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/kconfig/confdata.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,9 +1331,8 @@ void conf_rewrite_mod_or_yes(enum conf_def_mode mode)
13311331

13321332
for_all_symbols(i, sym) {
13331333
if (sym_get_type(sym) == S_TRISTATE &&
1334-
sym->def[S_DEF_USER].tri == old_val) {
1334+
sym->def[S_DEF_USER].tri == old_val)
13351335
sym->def[S_DEF_USER].tri = new_val;
1336-
sym_add_change_count(1);
1337-
}
13381336
}
1337+
sym_clear_all_valid();
13391338
}

0 commit comments

Comments
 (0)