]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/pmu: Move the vmx_icl_pebs_cpu[] definition out of the header file
authorLike Xu <likexu@tencent.com>
Wed, 18 May 2022 17:01:16 +0000 (01:01 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:48:27 +0000 (04:48 -0400)
commit2e1cf190a251103b1b10973a7e6b7d0d2fe9dcdc
treebe781d30bf59c24b58dfe8471cfa5e7f84bb8d7d
parent04f840b54f9ba74cc714189675ff3a1aeaba3493
KVM: x86/pmu: Move the vmx_icl_pebs_cpu[] definition out of the header file

Defining a static const array in a header file would introduce redundant
definitions to the point of confusing semantics, and such a use case would
only bring complaints from the compiler:

arch/x86/kvm/pmu.h:20:32: warning: ‘vmx_icl_pebs_cpu’ defined but not used [-Wunused-const-variable=]
   20 | static const struct x86_cpu_id vmx_icl_pebs_cpu[] = {
      |                                ^~~~~~~~~~~~~~~~

Fixes: a095df2c5f48 ("KVM: x86/pmu: Adjust precise_ip to emulate Ice Lake guest PDIR counter")
Signed-off-by: Like Xu <likexu@tencent.com>
Message-Id: <20220518170118.66263-1-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/pmu.c
arch/x86/kvm/pmu.h