From: Yann E. MORIN Date: Wed, 24 Apr 2013 20:00:04 +0000 (+0200) Subject: kconfig: do not override symbols already set X-Git-Tag: 1.9.9~35 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=3003b96f9499b0736af1800676621c00c59b2ac9;p=carl9170fw.git kconfig: do not override symbols already set For randconfig, if a list of required symbols is specified with KCONFIG_ALLCONFIG, such symbols do not "have a value" as per sym_has_value(), but have the "valid" flag set. Signed-off-by: "Yann E. MORIN" Signed-off-by: Christian Lamparter --- diff --git a/config/confdata.c b/config/confdata.c index 423ac06..089b717 100644 --- a/config/confdata.c +++ b/config/confdata.c @@ -1172,7 +1172,7 @@ void conf_set_all_new_symbols(enum conf_def_mode mode) int i, cnt; for_all_symbols(i, sym) { - if (sym_has_value(sym)) + if (sym_has_value(sym) || (sym->flags & SYMBOL_VALID)) continue; switch (sym_get_type(sym)) { case S_BOOLEAN: