···779779 if (choice) {780780 struct symbol *ds;781781782782- ds = sym_choice_default(choice->sym);782782+ ds = sym_choice_default(choice);783783 if (sym == ds && sym_get_tristate_value(sym) == yes)784784 continue;785785 }
+1-1
scripts/kconfig/lkc.h
···109109110110/* symbol.c */111111void sym_clear_all_valid(void);112112-struct symbol *sym_choice_default(struct symbol *sym);112112+struct symbol *sym_choice_default(struct menu *choice);113113struct symbol *sym_calc_choice(struct menu *choice);114114struct property *sym_get_range_prop(struct symbol *sym);115115const char *sym_get_string_default(struct symbol *sym);
+4-4
scripts/kconfig/symbol.c
···255255 * Next locate the first visible choice value256256 * Return NULL if none was found257257 */258258-struct symbol *sym_choice_default(struct symbol *sym)258258+struct symbol *sym_choice_default(struct menu *choice)259259{260260 struct symbol *def_sym;261261 struct property *prop;262262 struct expr *e;263263264264 /* any of the defaults visible? */265265- for_all_defaults(sym, prop) {265265+ for_all_defaults(choice->sym, prop) {266266 prop->visible.tri = expr_calc_value(prop->visible.expr);267267 if (prop->visible.tri == no)268268 continue;···272272 }273273274274 /* just get the first visible value */275275- prop = sym_get_choice_prop(sym);275275+ prop = sym_get_choice_prop(choice->sym);276276 expr_list_for_each_sym(prop->expr, e, def_sym)277277 if (def_sym->visible != no)278278 return def_sym;···312312 * explicitly set to 'n'.313313 */314314 if (!res) {315315- res = sym_choice_default(choice->sym);315315+ res = sym_choice_default(choice);316316 if (res && sym_has_value(res) && res->def[S_DEF_USER].tri == no)317317 res = NULL;318318 }