aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2013-04-26 16:41:32 -0400
committerYann E. MORIN <yann.morin.1998@free.fr>2013-04-26 17:21:59 -0400
commit23a5dfdad22a574d19d7cc19b391f9ce0d3c2f21 (patch)
treeebadd7b86468ebe48f84b8a9d89059ace6dbb1f3 /scripts
parente43956e607692f9b1c710311e4a6591ffba1edf0 (diff)
Revert "kconfig: fix randomising choice entries in presence of KCONFIG_ALLCONFIG"
This reverts commit 422c809f03f043d0950d8362214818e956a9daee. It causes more harm than it solves issues. Reported-by: Sedat Dilek <sedat.dilek@gmail.com> Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: Sedat Dilek <sedat.dilek@gmail.com> Cc: Sedat Dilek <sedat.dilek@gmail.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Michal Marek <mmarek@suse.cz> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Greg KH <greg@kroah.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/confdata.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index fc45fc137875..43eda40c3838 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -288,6 +288,8 @@ load:
288 for_all_symbols(i, sym) { 288 for_all_symbols(i, sym) {
289 sym->flags |= SYMBOL_CHANGED; 289 sym->flags |= SYMBOL_CHANGED;
290 sym->flags &= ~(def_flags|SYMBOL_VALID); 290 sym->flags &= ~(def_flags|SYMBOL_VALID);
291 if (sym_is_choice(sym))
292 sym->flags |= def_flags;
291 switch (sym->type) { 293 switch (sym->type) {
292 case S_INT: 294 case S_INT:
293 case S_HEX: 295 case S_HEX:
@@ -377,13 +379,13 @@ setsym:
377 case mod: 379 case mod:
378 if (cs->def[def].tri == yes) { 380 if (cs->def[def].tri == yes) {
379 conf_warning("%s creates inconsistent choice state", sym->name); 381 conf_warning("%s creates inconsistent choice state", sym->name);
382 cs->flags &= ~def_flags;
380 } 383 }
381 break; 384 break;
382 case yes: 385 case yes:
383 if (cs->def[def].tri != no) 386 if (cs->def[def].tri != no)
384 conf_warning("override: %s changes choice state", sym->name); 387 conf_warning("override: %s changes choice state", sym->name);
385 cs->def[def].val = sym; 388 cs->def[def].val = sym;
386 cs->flags |= def_flags;
387 break; 389 break;
388 } 390 }
389 cs->def[def].tri = EXPR_OR(cs->def[def].tri, sym->def[def].tri); 391 cs->def[def].tri = EXPR_OR(cs->def[def].tri, sym->def[def].tri);
@@ -789,8 +791,6 @@ int conf_write(const char *name)
789 sym_calc_value(sym); 791 sym_calc_value(sym);
790 if (!(sym->flags & SYMBOL_WRITE)) 792 if (!(sym->flags & SYMBOL_WRITE))
791 goto next; 793 goto next;
792 if (sym_is_choice_value(sym) && !menu_is_visible(menu->parent))
793 goto next;
794 sym->flags &= ~SYMBOL_WRITE; 794 sym->flags &= ~SYMBOL_WRITE;
795 795
796 conf_write_symbol(out, sym, &kconfig_printer_cb, NULL); 796 conf_write_symbol(out, sym, &kconfig_printer_cb, NULL);
@@ -1077,7 +1077,6 @@ static void randomize_choice_values(struct symbol *csym)
1077 else { 1077 else {
1078 sym->def[S_DEF_USER].tri = no; 1078 sym->def[S_DEF_USER].tri = no;
1079 } 1079 }
1080 sym->flags &= ~(SYMBOL_VALID);
1081 } 1080 }
1082 csym->flags |= SYMBOL_DEF_USER; 1081 csym->flags |= SYMBOL_DEF_USER;
1083 /* clear VALID to get value calculated */ 1082 /* clear VALID to get value calculated */