Skip to content

Commit 0fc670d

Browse files
jones-drewavpatel
authored andcommitted
KVM: selftests: Fix RISC-V compilation
Due to commit 2b7deea ("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: dee7ea4 ("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>
1 parent c66f3b4 commit 0fc670d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tools/testing/selftests/kvm/lib/riscv/ucall.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include "kvm_util.h"
1111
#include "processor.h"
12+
#include "sbi.h"
1213

1314
void *ucall_arch_get_ucall(struct kvm_vcpu *vcpu)
1415
{

tools/testing/selftests/kvm/riscv/ebreak_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*
77
*/
88
#include "kvm_util.h"
9+
#include "ucall_common.h"
910

1011
#define LABEL_ADDRESS(v) ((uint64_t)&(v))
1112

tools/testing/selftests/kvm/riscv/sbi_pmu_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "processor.h"
1616
#include "sbi.h"
1717
#include "arch_timer.h"
18+
#include "ucall_common.h"
1819

1920
/* Maximum counters(firmware + hardware) */
2021
#define RISCV_MAX_PMU_COUNTERS 64

0 commit comments

Comments
 (0)