Commit 85719919 authored by Wei Li's avatar Wei Li Committed by Zheng Zengkai
Browse files

kabi: cleanup config entries of kabi

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4T1NF


CVE: NA

-------------------------------------------------

Move config entries of kabi to "General setup", and make
CONFIG_KABI_SIZE_ALIGN_CHECKS depending on CONFIG_KABI_RESERVE.

Signed-off-by: default avatarWei Li <liwei391@huawei.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent e5a96cf6
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -30,18 +30,3 @@ source "lib/Kconfig"
source "lib/Kconfig.debug"

source "Documentation/Kconfig"

config KABI_SIZE_ALIGN_CHECKS
	bool "Enables more stringent kabi checks in the macros"
	default y
	help
	  This option enables more stringent kabi checks. Those must be disable
	  in case of a debug-build because they allow to change struct sizes.

config KABI_RESERVE
	bool "Enable KABI PADDING RESERVE"
	default y
	help
	  This option enables KABI padding reserve.
	  For some embedded system, KABI padding reserve may be not necessary.
	  Disable it on demand.
+16 −0
Original line number Diff line number Diff line
@@ -2086,6 +2086,22 @@ config PROFILING
config TRACEPOINTS
	bool

config KABI_RESERVE
	bool "Enable KABI PADDING RESERVE"
	default y
	help
	  This option enables KABI padding reserve.
	  For some embedded system, KABI padding reserve may be not necessary.
	  Disable it on demand.

config KABI_SIZE_ALIGN_CHECKS
	bool "Enables more stringent kabi checks in the macros"
	default y
	depends on KABI_RESERVE
	help
	  This option enables more stringent kabi checks. Those must be disable
	  in case of a debug-build because they allow to change struct sizes.

endmenu		# General setup

source "arch/Kconfig"