Skip to content

Commit

Permalink
kconfig: readd lost change count
Browse files Browse the repository at this point in the history
Commit f072181 ("kconfig: drop the
""trying to assign nonexistent symbol" warning") simply dropped the
warnings, but it does a little more than that, it also marks the current
.config as needed saving, so add this back.

Signed-off-by: Roman Zippel <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
[email protected] authored and torvalds committed Sep 29, 2008
1 parent 204c96f commit 661b068
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/kconfig/confdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,10 @@ int conf_read_simple(const char *name, int def)
continue;
if (def == S_DEF_USER) {
sym = sym_find(line + 9);
if (!sym)
if (!sym) {
sym_add_change_count(1);
break;
}
} else {
sym = sym_lookup(line + 9, 0);
if (sym->type == S_UNKNOWN)
Expand Down Expand Up @@ -259,8 +261,10 @@ int conf_read_simple(const char *name, int def)
}
if (def == S_DEF_USER) {
sym = sym_find(line + 7);
if (!sym)
if (!sym) {
sym_add_change_count(1);
break;
}
} else {
sym = sym_lookup(line + 7, 0);
if (sym->type == S_UNKNOWN)
Expand Down

0 comments on commit 661b068

Please sign in to comment.