Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kconfig: use sym_get_choice_menu() in sym_check_print_recursive()

Choices and their members are associated via the P_CHOICE property.

Currently, prop_get_symbol(sym_get_choice_prop()) is used to obtain
the choice of the given choice member.

Replace it with sym_get_choice_menu(), which retrieves the choice
without relying on P_CHOICE.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+4 -2
+4 -2
scripts/kconfig/symbol.c
··· 1078 1078 struct dep_stack *stack; 1079 1079 struct symbol *sym, *next_sym; 1080 1080 struct menu *menu = NULL; 1081 + struct menu *choice; 1081 1082 struct property *prop; 1082 1083 struct dep_stack cv_stack; 1083 1084 1084 - if (sym_is_choice_value(last_sym)) { 1085 + choice = sym_get_choice_menu(last_sym); 1086 + if (choice) { 1085 1087 dep_stack_insert(&cv_stack, last_sym); 1086 - last_sym = prop_get_symbol(sym_get_choice_prop(last_sym)); 1088 + last_sym = choice->sym; 1087 1089 } 1088 1090 1089 1091 for (stack = check_top; stack != NULL; stack = stack->prev)