diff options
| author | Mark Brown <[email protected]> | 2024-09-30 18:10:33 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2024-10-01 15:07:26 +0000 |
| commit | 76f972c2cfdf4beba8221c94b983e10a0de797c5 (patch) | |
| tree | 6f022e747f93b38bd3be8a6a26067ff97590edfe /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | Documentation: KVM: fix warning in "make htmldocs" (diff) | |
| download | kernel-76f972c2cfdf4beba8221c94b983e10a0de797c5.tar.gz kernel-76f972c2cfdf4beba8221c94b983e10a0de797c5.zip | |
KVM: selftests: Fix build on architectures other than x86_64
The recent addition of support for testing with the x86 specific quirk
KVM_X86_QUIRK_SLOT_ZAP_ALL disabled in the generic memslot tests broke the
build of the KVM selftests for all other architectures:
In file included from include/kvm_util.h:8,
from include/memstress.h:13,
from memslot_modification_stress_test.c:21:
memslot_modification_stress_test.c: In function ‘main’:
memslot_modification_stress_test.c:176:38: error: ‘KVM_X86_QUIRK_SLOT_ZAP_ALL’ undeclared (first use in this function)
176 | KVM_X86_QUIRK_SLOT_ZAP_ALL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Add __x86_64__ guard defines to avoid building the relevant code on other
architectures.
Fixes: 61de4c34b51c ("KVM: selftests: Test memslot move in memslot_perf_test with quirk disabled")
Fixes: 218f6415004a ("KVM: selftests: Allow slot modification stress test with quirk disabled")
Reported-by: Aishwarya TCV <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
