Skip to content

redhat: introduce RH_KABI_EXCLUDE_WITH_SIZE and enable size checks

Sabrina Dubroca requested to merge sdubroca/kernel-ark:ark-kabi into os-build

This MR introduces a new kABI macro, RH_KABI_EXCLUDE_WITH_SIZE. The implementation is identical to RH_KABI_EXTEND_WITH_SIZE, but the meaning is more in line with RH_KABI_EXCLUDE. The size check and reserved space allows us to exclude an element embedded inside a kABI-protected structure while reserving space for it to grow in the future.

The size checks that are part of multiple kABI macros are currently not enabled because the config option to turn them on is missing. Those size checks only make sense on regular builds, so they're disabled on debug kernels.

Signed-off-by: Sabrina Dubroca sdubroca@redhat.com

Edited by Sabrina Dubroca

Merge request reports