summaryrefslogtreecommitdiff
path: root/scripts/kconfig/menu.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-02-02 18:58:17 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2024-02-19 12:20:41 +0300
commit4dae9cf5cbb863c7ca23899446885dbc457f81ae (patch)
tree5aeb760348fa8b30930ca419a9a5d0007c2f122f /scripts/kconfig/menu.c
parent5b058034e3aa600802ab609e8264dc2ca1300ebe (diff)
downloadlinux-4dae9cf5cbb863c7ca23899446885dbc457f81ae.tar.xz
kconfig: split list_head into a separate header
The struct list_head is often embedded in other structures, while other code is used in C functions. By separating struct list_head into its own header, other headers are no longer required to include the entire list.h. This is similar to the kernel space, where struct list_head is defined in <linux/types.h> instead of <linux/list.h>. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/menu.c')
-rw-r--r--scripts/kconfig/menu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index f701382f8a69..696803d944e0 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -10,6 +10,7 @@
#include "lkc.h"
#include "internal.h"
+#include "list.h"
static const char nohelp_text[] = "There is no help available for this option.";