kconfig: split list_head into a separate header
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 2 Feb 2024 15:58:17 +0000 (00:58 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 19 Feb 2024 09:20:41 +0000 (18:20 +0900)
commit4dae9cf5cbb863c7ca23899446885dbc457f81ae
tree5aeb760348fa8b30930ca419a9a5d0007c2f122f
parent5b058034e3aa600802ab609e8264dc2ca1300ebe
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>
scripts/kconfig/expr.h
scripts/kconfig/list.h
scripts/kconfig/list_types.h [new file with mode: 0644]
scripts/kconfig/mconf.c
scripts/kconfig/menu.c
scripts/kconfig/nconf.c