kconfig: use linked list in get_symbol_str() to iterate over menus
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 3 Mar 2024 04:00:34 +0000 (13:00 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 9 Mar 2024 06:04:22 +0000 (15:04 +0900)
commitbedf92362317adff1da6ac787b09626d30e60b00
tree7ce20daf62aadb9eb7385235c72473f28d9a25c3
parente0492219a6d752942b054cbfbbcbc1e8ab294d26
kconfig: use linked list in get_symbol_str() to iterate over menus

Currently, get_symbol_str() uses a tricky approach to traverse the
associated menus.

With relevant menus now linked to the symbol using a linked list,
use list_for_each_entry() for iterating on the menus.

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