aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorMarc Zyngier <[email protected]>2024-11-20 11:15:16 +0000
committerOliver Upton <[email protected]>2024-11-21 01:22:00 +0000
commit0f3a0f23f5621b9a5a28c9235c950caf6e2012d5 (patch)
tree5ab28e287f2ec42f085c7c21dc025a841b6d1073 /drivers/cdx/controller/cdx_controller.c
parentKVM: arm64: vgic-its: Add stronger type-checking to the ITS entry sizes (diff)
downloadkernel-0f3a0f23f5621b9a5a28c9235c950caf6e2012d5.tar.gz
kernel-0f3a0f23f5621b9a5a28c9235c950caf6e2012d5.zip
KVM: arm64: Mark set_sysreg_masks() as inline to avoid build failure
When compiling with CONFIG_CC_OPTIMIZE_FOR_SIZE=y, set_sysreg_masks() fails to compile thanks to: BUILD_BUG_ON(!__builtin_constant_p(sr)); as the compiler doesn't identify sr as a constant, despite all the callers passing constants. Fix the issue by always inlining this function, which allows GCC to do the right thing. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: a0162020095e2 ("KVM: arm64: Extend masking facility to arbitrary registers") Signed-off-by: Marc Zyngier <[email protected]> Reviewed-by: Joey Gouly <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions