[arm-platforms:kvm-arm64/pmu-includes 15/15] drivers/perf/arm_pmu.c:932:2: error: call to undeclared function 'kvm_host_pmu_init'; ISO C99 and later do not support implicit function declarations

kernel test robot lkp at intel.com
Mon Feb 10 04:31:45 PST 2025


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/pmu-includes
head:   7f3348d6c8577e4e729279ef30f5e9013cf9fbd5
commit: 7f3348d6c8577e4e729279ef30f5e9013cf9fbd5 [15/15] PMU include cleanup
config: arm-bcm2835_defconfig (https://download.01.org/0day-ci/archive/20250210/202502102059.w8qrGKZn-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250210/202502102059.w8qrGKZn-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/202502102059.w8qrGKZn-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/perf/arm_pmu.c:932:2: error: call to undeclared function 'kvm_host_pmu_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           kvm_host_pmu_init(pmu);
           ^
   1 error generated.


vim +/kvm_host_pmu_init +932 drivers/perf/arm_pmu.c

2681f0184276d7 Mark Rutland      2017-03-10  911  
74a2b3ea2d8c6c Mark Rutland      2017-04-11  912  int armpmu_register(struct arm_pmu *pmu)
74a2b3ea2d8c6c Mark Rutland      2017-04-11  913  {
74a2b3ea2d8c6c Mark Rutland      2017-04-11  914  	int ret;
74a2b3ea2d8c6c Mark Rutland      2017-04-11  915  
74a2b3ea2d8c6c Mark Rutland      2017-04-11  916  	ret = cpu_pmu_init(pmu);
74a2b3ea2d8c6c Mark Rutland      2017-04-11  917  	if (ret)
74a2b3ea2d8c6c Mark Rutland      2017-04-11  918  		return ret;
74a2b3ea2d8c6c Mark Rutland      2017-04-11  919  
1d899c0e9bc2a1 Andrew Murray     2019-01-10  920  	if (!pmu->set_event_filter)
1d899c0e9bc2a1 Andrew Murray     2019-01-10  921  		pmu->pmu.capabilities |= PERF_PMU_CAP_NO_EXCLUDE;
1d899c0e9bc2a1 Andrew Murray     2019-01-10  922  
74a2b3ea2d8c6c Mark Rutland      2017-04-11  923  	ret = perf_pmu_register(&pmu->pmu, pmu->name, -1);
74a2b3ea2d8c6c Mark Rutland      2017-04-11  924  	if (ret)
74a2b3ea2d8c6c Mark Rutland      2017-04-11  925  		goto out_destroy;
74a2b3ea2d8c6c Mark Rutland      2017-04-11  926  
bf5ffc8c80e0cf Rob Herring (Arm  2024-07-31  927) 	pr_info("enabled with %s PMU driver, %d (%*pb) counters available%s\n",
bf5ffc8c80e0cf Rob Herring (Arm  2024-07-31  928) 		pmu->name, bitmap_weight(pmu->cntr_mask, ARMPMU_MAX_HWEVENTS),
bf5ffc8c80e0cf Rob Herring (Arm  2024-07-31  929) 		ARMPMU_MAX_HWEVENTS, &pmu->cntr_mask,
d8f6267f7ce5dc Julien Thierry    2020-09-24  930  		has_nmi ? ", using NMIs" : "");
74a2b3ea2d8c6c Mark Rutland      2017-04-11  931  
e840f42a499257 Marc Zyngier      2021-09-19 @932  	kvm_host_pmu_init(pmu);
e840f42a499257 Marc Zyngier      2021-09-19  933  
74a2b3ea2d8c6c Mark Rutland      2017-04-11  934  	return 0;
74a2b3ea2d8c6c Mark Rutland      2017-04-11  935  
74a2b3ea2d8c6c Mark Rutland      2017-04-11  936  out_destroy:
74a2b3ea2d8c6c Mark Rutland      2017-04-11  937  	cpu_pmu_destroy(pmu);
74a2b3ea2d8c6c Mark Rutland      2017-04-11  938  	return ret;
74a2b3ea2d8c6c Mark Rutland      2017-04-11  939  }
74a2b3ea2d8c6c Mark Rutland      2017-04-11  940  

:::::: The code at line 932 was first introduced by commit
:::::: e840f42a49925707fca90e6c7a4095118fdb8c4d KVM: arm64: Fix PMU probe ordering

:::::: TO: Marc Zyngier <maz at kernel.org>
:::::: CC: Marc Zyngier <maz at kernel.org>

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



More information about the linux-arm-kernel mailing list