tree:
https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
kvm-arm64/pmu-debug-fixes-5.11
head: 2aa1837246b4399ed85dba448b8dd19b48b95573
commit: 2aa1837246b4399ed85dba448b8dd19b48b95573 [7/7] KVM: arm64: Use symbolic names for
the PMU versions
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms
https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms kvm-arm64/pmu-debug-fixes-5.11
git checkout 2aa1837246b4399ed85dba448b8dd19b48b95573
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/arm64/kvm/pmu-emul.c: In function 'kvm_pmu_event_mask':
> arch/arm64/kvm/pmu-emul.c:26:7: error:
'ID_DFR0_PERFMON_8_0' undeclared (first use in this function); did you mean
'ID_DFR0_PERFMON_8_1'?
26 | case ID_DFR0_PERFMON_8_0:
| ^~~~~~~~~~~~~~~~~~~
| ID_DFR0_PERFMON_8_1
arch/arm64/kvm/pmu-emul.c:26:7: note: each undeclared identifier is reported only once
for each function it appears in
> arch/arm64/kvm/pmu-emul.c:29:7: error:
'ID_DFR0_PERFMON_8_4' undeclared (first use in this function); did you mean
'ID_DFR0_PERFMON_8_1'?
29 | case ID_DFR0_PERFMON_8_4:
| ^~~~~~~~~~~~~~~~~~~
| ID_DFR0_PERFMON_8_1
> arch/arm64/kvm/pmu-emul.c:30:7: error:
'ID_DFR0_PERFMON_8_5' undeclared (first use in this function); did you mean
'ID_DFR0_PERFMON_8_1'?
30 | case ID_DFR0_PERFMON_8_5:
| ^~~~~~~~~~~~~~~~~~~
| ID_DFR0_PERFMON_8_1
vim +26 arch/arm64/kvm/pmu-emul.c
22
23 static u32 kvm_pmu_event_mask(struct kvm *kvm)
24 {
25 switch (kvm->arch.pmuver) {
26 case ID_DFR0_PERFMON_8_0:
27 return GENMASK(9, 0);
28 case ID_DFR0_PERFMON_8_1:
29 case ID_DFR0_PERFMON_8_4:
30 case ID_DFR0_PERFMON_8_5:
31 return GENMASK(15, 0);
32 default: /* Shouldn't be here, just for sanity */
33 WARN_ONCE(1, "Unknown PMU version %d\n", kvm->arch.pmuver);
34 return 0;
35 }
36 }
37
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org