[PATCH] KVM: arm64: Mark set_sysreg_masks() as inline to avoid build failure

Oliver Upton oliver.upton at linux.dev
Thu Nov 21 00:18:04 PST 2024


On Wed, 20 Nov 2024 11:15:16 +0000, Marc Zyngier wrote:
> 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.
> 
> [...]

Applied to fixes, thanks!

[1/1] KVM: arm64: Mark set_sysreg_masks() as inline to avoid build failure
      https://git.kernel.org/kvmarm/kvmarm/c/0f3a0f23f562

--
Best,
Oliver



More information about the linux-arm-kernel mailing list