mirror of
https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9.git
synced 2026-09-09 00:08:12 +08:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user