]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Fix compilation when CONFIG_ARM64_USE_LSE_ATOMICS=n
authorOliver Upton <oupton@kernel.org>
Mon, 24 Nov 2025 23:54:09 +0000 (15:54 -0800)
committerOliver Upton <oupton@kernel.org>
Mon, 1 Dec 2025 08:44:02 +0000 (00:44 -0800)
commit36fe022f884bb936d911a0d2e93819aba11daceb
tree27697c856975b0794cfe3855b313d02084a631fc
parent66f188858385d640163fbf866d9c11b7741da91a
KVM: arm64: Fix compilation when CONFIG_ARM64_USE_LSE_ATOMICS=n

__lse_swap_desc() is compiled unconditionally, even if LSE is disabled
using the config option. Align with the spirit of the config option and
fix some build errors due to __LSE_PREAMBLE being undefined with the
application of some ifdeffery.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202511250700.kAutzJFm-lkp@intel.com/
Link: https://msgid.link/20251124235409.1731253-1-oupton@kernel.org
Signed-off-by: Oliver Upton <oupton@kernel.org>
arch/arm64/kvm/at.c