[PATCH 2/2] readd lost change count

Previous thread: [PATCH 1/2] fix silentoldconfig by zippel on Sunday, September 28, 2008 - 8:27 pm. (1 message)

Next thread: [git patch] libata regression fix by Jeff Garzik on Sunday, September 28, 2008 - 9:36 pm. (1 message)
From: zippel
Date: Sunday, September 28, 2008 - 8:27 pm

f072181e6403b0fe2e2aa800a005497b748fd284 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 <zippel@linux-m68k.org>

Index: linux-2.6/scripts/kconfig/confdata.c
===================================================================
--- linux-2.6.orig/scripts/kconfig/confdata.c
+++ linux-2.6/scripts/kconfig/confdata.c
@@ -222,8 +222,10 @@ load:
 				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)
@@ -259,8 +261,10 @@ load:
 			}
 			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)

-- 

--

Previous thread: [PATCH 1/2] fix silentoldconfig by zippel on Sunday, September 28, 2008 - 8:27 pm. (1 message)

Next thread: [git patch] libata regression fix by Jeff Garzik on Sunday, September 28, 2008 - 9:36 pm. (1 message)