diff options
author | 2025-03-06 16:38:28 -0800 | |
---|---|---|
committer | 2025-03-06 16:41:04 -0800 | |
commit | 44ff44cadbd144ee1159f5687a852c49c4290262 (patch) | |
tree | 0f12630e6f57351341f2b17511ddbb619242e5cf | |
parent | KVM: selftests: Add test for KVM_REG_ARM_VENDOR_HYP_BMAP_2 (diff) | |
download | wireguard-linux-44ff44cadbd144ee1159f5687a852c49c4290262.tar.xz wireguard-linux-44ff44cadbd144ee1159f5687a852c49c4290262.zip |
smccc: kvm_guest: Fix kernel builds for 32 bit arm
The paravirtual implementation ID stuffs is 64-bit only and broke 32bit
arm builds. Slap an ifdef bandaid on the situation to get things rolling
again.
Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to '')
-rw-r--r-- | drivers/firmware/smccc/kvm_guest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/firmware/smccc/kvm_guest.c b/drivers/firmware/smccc/kvm_guest.c index 2f03b582c298..5767aed25cdc 100644 --- a/drivers/firmware/smccc/kvm_guest.c +++ b/drivers/firmware/smccc/kvm_guest.c @@ -55,6 +55,7 @@ bool kvm_arm_hyp_service_available(u32 func_id) } EXPORT_SYMBOL_GPL(kvm_arm_hyp_service_available); +#ifdef CONFIG_ARM64 void __init kvm_arm_target_impl_cpu_init(void) { int i; @@ -115,3 +116,4 @@ void __init kvm_arm_target_impl_cpu_init(void) mem_free: memblock_free(target, sizeof(*target) * max_cpus); } +#endif |