Skip to content

Commit ff76d77

Browse files
committed
KVM: selftests: Drop the "name" param from KVM_X86_PMU_FEATURE()
Drop the "name" parameter from KVM_X86_PMU_FEATURE(), it's unused and the name is redundant with the macro, i.e. it's truly useless. Reviewed-by: Jim Mattson <jmattson@google.com> Tested-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Link: https://lore.kernel.org/r/20240109230250.424295-14-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent d7e6873 commit ff76d77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ struct kvm_x86_cpu_property {
290290
struct kvm_x86_pmu_feature {
291291
struct kvm_x86_cpu_feature anti_feature;
292292
};
293-
#define KVM_X86_PMU_FEATURE(name, __bit) \
293+
#define KVM_X86_PMU_FEATURE(__bit) \
294294
({ \
295295
struct kvm_x86_pmu_feature feature = { \
296296
.anti_feature = KVM_X86_CPU_FEATURE(0xa, 0, EBX, __bit), \
@@ -299,7 +299,7 @@ struct kvm_x86_pmu_feature {
299299
feature; \
300300
})
301301

302-
#define X86_PMU_FEATURE_BRANCH_INSNS_RETIRED KVM_X86_PMU_FEATURE(BRANCH_INSNS_RETIRED, 5)
302+
#define X86_PMU_FEATURE_BRANCH_INSNS_RETIRED KVM_X86_PMU_FEATURE(5)
303303

304304
static inline unsigned int x86_family(unsigned int eax)
305305
{

0 commit comments

Comments
 (0)