[PATCH v4 22/23] KVM: arm64: Add ioctl to partition the PMU when supported
Colton Lewis
coltonlewis at google.com
Tue Jul 15 14:16:50 PDT 2025
kernel test robot <lkp at intel.com> writes:
> Hi Colton,
> kernel test robot noticed the following build errors:
> [auto build test ERROR on 79150772457f4d45e38b842d786240c36bb1f97f]
> url:
> https://github.com/intel-lab-lkp/linux/commits/Colton-Lewis/arm64-cpufeature-Add-cpucap-for-HPMN0/20250715-070741
> base: 79150772457f4d45e38b842d786240c36bb1f97f
> patch link:
> https://lore.kernel.org/r/20250714225917.1396543-23-coltonlewis%40google.com
> patch subject: [PATCH v4 22/23] KVM: arm64: Add ioctl to partition the
> PMU when supported
> config: arm64-randconfig-003-20250715
> (https://download.01.org/0day-ci/archive/20250716/202507160129.vrvWpdVu-lkp@intel.com/config)
> compiler: aarch64-linux-gcc (GCC) 8.5.0
> reproduce (this is a W=1 build):
> (https://download.01.org/0day-ci/archive/20250716/202507160129.vrvWpdVu-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 <lkp at intel.com>
> | Closes:
> https://lore.kernel.org/oe-kbuild-all/202507160129.vrvWpdVu-lkp@intel.com/
> All errors (new ones prefixed by >>):
> In file included from arch/arm64/include/asm/kvm_host.h:31,
> from include/linux/kvm_host.h:45,
> from arch/arm64/kernel/asm-offsets.c:15:
> arch/arm64/include/asm/kvm_pmu.h: In function 'kvm_pmu_is_partitioned':
>>> arch/arm64/include/asm/kvm_pmu.h:301:43: error: parameter name omitted
> static inline bool kvm_pmu_is_partitioned(void *)
> ^~~~~~
> arch/arm64/include/asm/kvm_pmu.h: In
> function 'kvm_pmu_host_counter_mask':
> arch/arm64/include/asm/kvm_pmu.h:306:45: error: parameter name omitted
> static inline u64 kvm_pmu_host_counter_mask(void *)
> ^~~~~~
> arch/arm64/include/asm/kvm_pmu.h: In
> function 'kvm_pmu_guest_counter_mask':
> arch/arm64/include/asm/kvm_pmu.h:311:46: error: parameter name omitted
> static inline u64 kvm_pmu_guest_counter_mask(void *)
> ^~~~~~
> make[3]: *** [scripts/Makefile.build:182:
> arch/arm64/kernel/asm-offsets.s] Error 1 shuffle=21662191
Same spot/declarations that triggered a build error on v2 and fixed in
v3 but moved to void * in v4 rather than defining an empty arm_pmu
struct due to v3 feedback.
Notably I remembered to build this branch before sending this time but
these definitions do not trigger an error or warning on gcc-14 with this
.config and W=1. So I'm not sure how I could have reasonably caught this
myself before sending.
Anyway, I'll fix. It's nothing to give the parameters a name.
> make[3]: Target 'prepare' not remade because of errors.
> make[2]: *** [Makefile:1274: prepare0] Error 2 shuffle=21662191
> make[2]: Target 'prepare' not remade because of errors.
> make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=21662191
> make[1]: Target 'prepare' not remade because of errors.
> make: *** [Makefile:248: __sub-make] Error 2 shuffle=21662191
> make: Target 'prepare' not remade because of errors.
> vim +301 arch/arm64/include/asm/kvm_pmu.h
> 300
> > 301 static inline bool kvm_pmu_is_partitioned(void *)
> 302 {
> 303 return false;
> 304 }
> 305
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
More information about the linux-arm-kernel
mailing list