Skip to content

Commit c3c369b

Browse files
ouptonMarc Zyngier
authored andcommitted
KVM: selftests: Use MPIDR_HWID_BITMASK from cputype.h
No need for a home-rolled definition, just rely on the common header. Signed-off-by: Oliver Upton <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]>
1 parent 03e560a commit c3c369b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/testing/selftests/kvm/aarch64/psci_test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414
#define _GNU_SOURCE
1515

16+
#include <linux/kernel.h>
1617
#include <linux/psci.h>
18+
#include <asm/cputype.h>
1719

1820
#include "kvm_util.h"
1921
#include "processor.h"

tools/testing/selftests/kvm/include/aarch64/processor.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@
5858
MAIR_ATTRIDX(MAIR_ATTR_NORMAL, MT_NORMAL) | \
5959
MAIR_ATTRIDX(MAIR_ATTR_NORMAL_WT, MT_NORMAL_WT))
6060

61-
#define MPIDR_HWID_BITMASK (0xff00fffffful)
62-
6361
void aarch64_vcpu_setup(struct kvm_vcpu *vcpu, struct kvm_vcpu_init *init);
6462
struct kvm_vcpu *aarch64_vcpu_add(struct kvm_vm *vm, uint32_t vcpu_id,
6563
struct kvm_vcpu_init *init, void *guest_code);

0 commit comments

Comments
 (0)