Re: [PATCH v6 08/19] KVM: arm64: Define access helpers for PMUSERENR and PMSELR

From: kernel test robot

Date: Tue Feb 10 2026 - 00:21:45 EST


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-bpf (https://download.01.org/0day-ci/archive/20260210/202602100555.etWxDEB0-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260210/202602100555.etWxDEB0-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/r/202602100555.etWxDEB0-lkp@xxxxxxxxx/

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:
>> ./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

2d3f843993bdd5 Colton Lewis 2026-02-09 259
2d3f843993bdd5 Colton Lewis 2026-02-09 @260 static u64 kvm_vcpu_read_pmuserenr(struct kvm_vcpu *vcpu)
2d3f843993bdd5 Colton Lewis 2026-02-09 261 {
2d3f843993bdd5 Colton Lewis 2026-02-09 262 return 0;
2d3f843993bdd5 Colton Lewis 2026-02-09 263 }
2d3f843993bdd5 Colton Lewis 2026-02-09 264

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki