diff options
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/menu.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index 9d1f2adf2289..eef17bacb6bc 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c | |||
@@ -419,9 +419,13 @@ bool menu_is_visible(struct menu *menu) | |||
419 | if (!sym || sym_get_tristate_value(menu->sym) == no) | 419 | if (!sym || sym_get_tristate_value(menu->sym) == no) |
420 | return false; | 420 | return false; |
421 | 421 | ||
422 | for (child = menu->list; child; child = child->next) | 422 | for (child = menu->list; child; child = child->next) { |
423 | if (menu_is_visible(child)) | 423 | if (menu_is_visible(child)) { |
424 | if (sym) | ||
425 | sym->flags |= SYMBOL_DEF_USER; | ||
424 | return true; | 426 | return true; |
427 | } | ||
428 | } | ||
425 | 429 | ||
426 | return false; | 430 | return false; |
427 | } | 431 | } |