History

kconfig: readd lost change count

Commit f072181e6403b0fe2e2aa800a005497b748fd284 ("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.

zippel@linux-m68k.org committed 18 years ago

Commit 661b0681 parent 204c96f1 file · +6 −2Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kconfig/confdata.c+6−2
@@ -222,8 +222,10 @@ load: · 221 unmodified lines
222222 continue;
223223 if (def == S_DEF_USER) {
224224 sym = sym_find(line + 9);
225− if (!sym)
225+ if (!sym) {
226+ sym_add_change_count(1);
226227 break;
228+ }
227229 } else {
228230 sym = sym_lookup(line + 9, 0);
229231 if (sym->type == S_UNKNOWN)
@@ -259,8 +261,10 @@ load: · 29 unmodified lines
259261 }
260262 if (def == S_DEF_USER) {
261263 sym = sym_find(line + 7);
262− if (!sym)
264+ if (!sym) {
265+ sym_add_change_count(1);
263266 break;
267+ }
264268 } else {
265269 sym = sym_lookup(line + 7, 0);
266270 if (sym->type == S_UNKNOWN)