提交 661b0680 编写于 作者: Z zippel@linux-m68k.org 提交者: Linus Torvalds

kconfig: readd lost change count

Commit f072181e ("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: NRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 204c96f6
...@@ -222,8 +222,10 @@ int conf_read_simple(const char *name, int def) ...@@ -222,8 +222,10 @@ int conf_read_simple(const char *name, int def)
continue; continue;
if (def == S_DEF_USER) { if (def == S_DEF_USER) {
sym = sym_find(line + 9); sym = sym_find(line + 9);
if (!sym) if (!sym) {
sym_add_change_count(1);
break; break;
}
} else { } else {
sym = sym_lookup(line + 9, 0); sym = sym_lookup(line + 9, 0);
if (sym->type == S_UNKNOWN) if (sym->type == S_UNKNOWN)
...@@ -259,8 +261,10 @@ int conf_read_simple(const char *name, int def) ...@@ -259,8 +261,10 @@ int conf_read_simple(const char *name, int def)
} }
if (def == S_DEF_USER) { if (def == S_DEF_USER) {
sym = sym_find(line + 7); sym = sym_find(line + 7);
if (!sym) if (!sym) {
sym_add_change_count(1);
break; break;
}
} else { } else {
sym = sym_lookup(line + 7, 0); sym = sym_lookup(line + 7, 0);
if (sym->type == S_UNKNOWN) if (sym->type == S_UNKNOWN)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册