Files
linux/scripts/kconfig
Masahiro Yamada d01661e1f4 kconfig: show sub-menu entries even if the prompt is hidden
Since commit f79dc03fe6 ("kconfig: refactor choice value
calculation"), when EXPERT is disabled, nothing within the "if INPUT"
... "endif" block in drivers/input/Kconfig is displayed. This issue
affects all command-line interfaces and GUI frontends.

The prompt for INPUT is hidden when EXPERT is disabled. Previously,
menu_is_visible() returned true in this case; however, it now returns
false, resulting in all sub-menu entries being skipped.

Here is a simplified test case illustrating the issue:

    config A
           bool "A" if X
           default y

    config B
           bool "B"
           depends on A

When X is disabled, A becomes unconfigurable and is forced to y.
B should be displayed, as its dependency is met.

This commit restores the necessary code, so menu_is_visible() functions
as it did previously.

Fixes: f79dc03fe6 ("kconfig: refactor choice value calculation")
Reported-by: Edmund Raile <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Masahiro Yamada <[email protected]>
2024-10-31 21:42:20 +09:00
..
2024-07-16 01:08:37 +09:00
2024-09-20 09:21:53 +09:00
2024-09-20 09:21:53 +09:00
2024-07-16 16:07:14 +09:00
2020-08-14 13:30:03 +09:00
2020-08-14 13:30:03 +09:00
2024-09-20 09:21:53 +09:00
2024-09-20 09:21:53 +09:00