[PATCH 2/9] kconfig: fix restart for choice symbols

From: Roman Zippel
Date: Thu Nov 03 2005 - 10:06:52 EST



The restart check whether new symbols became visible, didn't always work
for choice symbols.

Signed-off-by: Roman Zippel <zippel@xxxxxxxxxxxxxx>

---

scripts/kconfig/conf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Index: linux-2.6/scripts/kconfig/conf.c
===================================================================
--- linux-2.6.orig/scripts/kconfig/conf.c 2005-11-03 13:19:34.000000000 +0100
+++ linux-2.6/scripts/kconfig/conf.c 2005-11-03 13:22:59.000000000 +0100
@@ -468,7 +468,8 @@ static void check_conf(struct menu *menu

sym = menu->sym;
if (sym) {
- if (sym_is_changable(sym) && !sym_has_value(sym)) {
+ if ((sym_is_changable(sym) || sym_is_choice(sym)) &&
+ !sym_has_value(sym)) {
if (!conf_cnt++)
printf(_("*\n* Restart config...\n*\n"));
rootEntry = menu_get_parent_menu(menu);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/