aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorAndrew Jones <[email protected]>2021-12-14 16:18:42 +0100
committerPaolo Bonzini <[email protected]>2021-12-20 08:06:54 -0500
commit577e022b7b41854911dcfb03678d8d2b930e8a3f (patch)
tree5e0ad68c2366c356da194f9474d0d40b16d84b5b /tools/perf/scripts/python/syscall-counts.py
parentc5063551bfcae4e48fec890b7bf369598b77526b (diff)
selftests: KVM: Fix non-x86 compiling
Attempting to compile on a non-x86 architecture fails with include/kvm_util.h: In function ‘vm_compute_max_gfn’: include/kvm_util.h:79:21: error: dereferencing pointer to incomplete type ‘struct kvm_vm’ return ((1ULL << vm->pa_bits) >> vm->page_shift) - 1; ^~ This is because the declaration of struct kvm_vm is in lib/kvm_util_internal.h as an effort to make it private to the test lib code. We can still provide arch specific functions, though, by making the generic function symbols weak. Do that to fix the compile error. Fixes: c8cc43c1eae2 ("selftests: KVM: avoid failures due to reserved HyperTransport region") Cc: [email protected] Signed-off-by: Andrew Jones <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions