kconfig: link menus to a symbol
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 3 Mar 2024 04:00:33 +0000 (13:00 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 9 Mar 2024 06:01:00 +0000 (15:01 +0900)
commite0492219a6d752942b054cbfbbcbc1e8ab294d26
tree152e81501cac71ee57ea0d51017c4d8916e74715
parent50a339981780e233a5be88b9116a6dfd0e00231a
kconfig: link menus to a symbol

Currently, there is no direct link from (struct symbol) to (struct menu).

It is still possible to access associated menus through the P_SYMBOL
property, because property::menu is the relevant menu entry, but it
results in complex code, as seen in get_symbol_str().

Use a linked list for simpler traversal of relevant menus.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
scripts/kconfig/expr.h
scripts/kconfig/menu.c
scripts/kconfig/symbol.c