
From: Xie XiuQi <xiexiuqi@huawei.com> hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8LQBH -------------------------------- This option enables more stringent kabi checks. Those must be disable in case of a debug-build because they allow to change struct sizes. Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com> Reviewed-by: Cheng Jian <cj.chengjian@huawei.com> Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com> --- init/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/init/Kconfig b/init/Kconfig index 6d35728b94b2..81ff8d28ec28 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1920,6 +1920,14 @@ config BINDGEN_VERSION_TEXT config TRACEPOINTS bool +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. + source "kernel/Kconfig.kexec" endmenu # General setup -- 2.25.1