redhat: kABI: add missing RH_KABI_SIZE_ALIGN_CHECKS Kconfig option
JIRA: https://issues.redhat.com/browse/RHEL-21356 Upstream Status: ark Conflict: rt config at a different location from ark commit f71d8eae8c6d07e0239e34c7fcb92aee856b85e7 Author: Sabrina Dubroca <sdubroca@redhat.com> Date: Fri Nov 17 15:33:51 2023 +0100 redhat: kABI: add missing RH_KABI_SIZE_ALIGN_CHECKS Kconfig option When the kABI macros were copied from the RHEL kernel to ARK, the RH_KABI_SIZE_ALIGN_CHECKS config option was dropped. Without it, the size checks included in some of the kABI macros can't be enabled. Add the KABI_SIZE_ALIGN_CHECKS config option, enable it on RHEL configs, and disable it for debug, rt, and zfcpdump kernels. Signed-off-by: Sabrina Dubroca <sdubroca@redhat.com> Signed-off-by: Sabrina Dubroca <sdubroca@redhat.com>
This commit is contained in:
parent
14c90f1e40
commit
8b1b9fe86b
Kconfig.redhat
redhat/configs/rhel
|
@ -14,4 +14,13 @@ config RHEL_DIFFERENCES
|
|||
|
||||
Unless you want a restricted kernel, say N here.
|
||||
|
||||
config RH_KABI_SIZE_ALIGN_CHECKS
|
||||
bool "Enables more stringent kabi checks in the macros"
|
||||
depends on RHEL_DIFFERENCES
|
||||
default y
|
||||
help
|
||||
This option enables more stringent kabi checks. Those must
|
||||
be disabled in case of a debug build, because debug builds
|
||||
allow to change struct sizes.
|
||||
|
||||
endmenu
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
# CONFIG_RH_KABI_SIZE_ALIGN_CHECKS is not set
|
|
@ -0,0 +1 @@
|
|||
CONFIG_RH_KABI_SIZE_ALIGN_CHECKS=y
|
|
@ -0,0 +1 @@
|
|||
# CONFIG_RH_KABI_SIZE_ALIGN_CHECKS is not set
|
|
@ -0,0 +1 @@
|
|||
# CONFIG_RH_KABI_SIZE_ALIGN_CHECKS is not set
|
Loading…
Reference in New Issue