]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kconfig: re-add menu_get_parent_menu() that returns parent menu
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 24 Jun 2025 15:04:53 +0000 (00:04 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 30 Jun 2025 04:20:23 +0000 (13:20 +0900)
commit7d1bfaa457686b1e791de03450a3d49f28bdd022
tree512fddff132457654005c2a75dec59763e87c81e
parent3c292cd0047c8758a2db7a44e441314e78b4db00
kconfig: re-add menu_get_parent_menu() that returns parent menu

This helper returns the parent menu, or NULL if there is no parent.
The main difference from the previous version is that it always returns
the parent menu even when the given argument is itself a menu.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
scripts/kconfig/lkc.h
scripts/kconfig/menu.c