]> git.dujemihanovic.xyz Git - linux.git/commitdiff
KVM: selftests: Fix RISC-V compilation
authorAndrew Jones <ajones@ventanamicro.com>
Mon, 3 Jun 2024 12:20:46 +0000 (14:20 +0200)
committerAnup Patel <anup@brainfault.org>
Thu, 6 Jun 2024 10:23:16 +0000 (15:53 +0530)
Due to commit 2b7deea3ec7c ("Revert "kvm: selftests: move base
kvm_util.h declarations to kvm_util_base.h"") kvm selftests now
requires explicitly including ucall_common.h when needed. The commit
added the directives everywhere they were needed at the time, but, by
merge time, new places had been merged for RISC-V. Add those now to
fix RISC-V's compilation.

Fixes: dee7ea42a1eb ("Merge tag 'kvm-x86-selftests_utils-6.10' of https://github.com/kvm-x86/linux into HEAD")
Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20240603122045.323064-2-ajones@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/lib/riscv/ucall.c
tools/testing/selftests/kvm/riscv/ebreak_test.c
tools/testing/selftests/kvm/riscv/sbi_pmu_test.c

index 14ee17151a590b26721c91940e758192d34633c0..b5035c63d5163b39ad4fffb6b0a65eac291f8e48 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "kvm_util.h"
 #include "processor.h"
+#include "sbi.h"
 
 void *ucall_arch_get_ucall(struct kvm_vcpu *vcpu)
 {
index 823c132069b46a07093262ff4e5b949833034932..0e071285495384c2bc2f33eb4c7f9b96cf43d9aa 100644 (file)
@@ -6,6 +6,7 @@
  *
  */
 #include "kvm_util.h"
+#include "ucall_common.h"
 
 #define LABEL_ADDRESS(v) ((uint64_t)&(v))
 
index 69bb94e6b22762081da27196b6b6903e55374c0d..f299cbfd23ca090adc4ef367500f1d790d28e922 100644 (file)
@@ -15,6 +15,7 @@
 #include "processor.h"
 #include "sbi.h"
 #include "arch_timer.h"
+#include "ucall_common.h"
 
 /* Maximum counters(firmware + hardware) */
 #define RISCV_MAX_PMU_COUNTERS 64