Skip to content

Commit

Permalink
smccc: kvm_guest: Fix kernel builds for 32 bit arm
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shameer Kolothum authored and Oliver Upton committed Mar 7, 2025
1 parent f696566 commit 44ff44c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/firmware/smccc/kvm_guest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -115,3 +116,4 @@ void __init kvm_arm_target_impl_cpu_init(void)
mem_free:
memblock_free(target, sizeof(*target) * max_cpus);
}
#endif

0 comments on commit 44ff44c

Please sign in to comment.