Re: [PATCH v6 08/19] KVM: arm64: Define access helpers for PMUSERENR and PMSELR
From: kernel test robot <hidden>
Date: 2026-02-10 04:31:26
Also in:
kvm, kvmarm, linux-doc, linux-kselftest, linux-perf-users, lkml, oe-kbuild-all
Hi Colton, kernel test robot noticed the following build warnings: [auto build test WARNING on 63804fed149a6750ffd28610c5c1c98cce6bd377] url: https://github.com/intel-lab-lkp/linux/commits/Colton-Lewis/arm64-cpufeature-Add-cpucap-for-HPMN0/20260210-064939 base: 63804fed149a6750ffd28610c5c1c98cce6bd377 patch link: https://lore.kernel.org/r/20260209221414.2169465-9-coltonlewis%40google.com patch subject: [PATCH v6 08/19] KVM: arm64: Define access helpers for PMUSERENR and PMSELR config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20260210/202602101245.8Hv4avst-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260210/202602101245.8Hv4avst-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot [off-list ref] | Closes: https://lore.kernel.org/oe-kbuild-all/202602101245.8Hv4avst-lkp@intel.com/ (local) All warnings (new ones prefixed by >>): In file included from arch/arm64/include/asm/kvm_host.h:38, from include/linux/kvm_host.h:45, from arch/arm64/kernel/asm-offsets.c:16:
quoted
include/kvm/arm_pmu.h:260:12: warning: 'kvm_vcpu_read_pmuserenr' defined but not used [-Wunused-function]
260 | static u64 kvm_vcpu_read_pmuserenr(struct kvm_vcpu *vcpu)
| ^~~~~~~~~~~~~~~~~~~~~~~
--
In file included from arch/arm64/include/asm/kvm_host.h:38,
from include/linux/kvm_host.h:45,
from arch/arm64/kernel/asm-offsets.c:16:quoted
include/kvm/arm_pmu.h:260:12: warning: 'kvm_vcpu_read_pmuserenr' defined but not used [-Wunused-function]
260 | static u64 kvm_vcpu_read_pmuserenr(struct kvm_vcpu *vcpu)
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/kvm_vcpu_read_pmuserenr +260 include/kvm/arm_pmu.h
259
> 260 static u64 kvm_vcpu_read_pmuserenr(struct kvm_vcpu *vcpu)
261 {
262 return 0;
263 }
264
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki