Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: selftests: Remove duplicate macro definition

The KVM_GUEST_PAGE_TABLE_MIN_PADDR macro has been defined in
include/kvm_util_base.h. So remove the duplicate definition in
lib/kvm_util.c.

Fixes: cce0c23dd944 ("KVM: selftests: Add wrapper to allocate page table page")
Signed-off-by: Shaoqin Huang <shahuang@redhat.com>
Link: https://lore.kernel.org/r/20230208071801.68620-1-shahuang@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>

authored by

Shaoqin Huang and committed by
Sean Christopherson
695fa5a6 6c77ae71

-3
-3
tools/testing/selftests/kvm/lib/kvm_util.c
··· 1941 1941 return vm_phy_pages_alloc(vm, 1, paddr_min, memslot); 1942 1942 } 1943 1943 1944 - /* Arbitrary minimum physical address used for virtual translation tables. */ 1945 - #define KVM_GUEST_PAGE_TABLE_MIN_PADDR 0x180000 1946 - 1947 1944 vm_paddr_t vm_alloc_page_table(struct kvm_vm *vm) 1948 1945 { 1949 1946 return vm_phy_page_alloc(vm, KVM_GUEST_PAGE_TABLE_MIN_PADDR,