Skip to content

Commit 44ff44c

Browse files
shamiali2008oupton
authored andcommitted
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>
1 parent f696566 commit 44ff44c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/firmware/smccc/kvm_guest.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ bool kvm_arm_hyp_service_available(u32 func_id)
5555
}
5656
EXPORT_SYMBOL_GPL(kvm_arm_hyp_service_available);
5757

58+
#ifdef CONFIG_ARM64
5859
void __init kvm_arm_target_impl_cpu_init(void)
5960
{
6061
int i;
@@ -115,3 +116,4 @@ void __init kvm_arm_target_impl_cpu_init(void)
115116
mem_free:
116117
memblock_free(target, sizeof(*target) * max_cpus);
117118
}
119+
#endif

0 commit comments

Comments
 (0)