[peterz-queue:perf/wip.rewrite 8/8] drivers/perf/arm_pmu.c:560:26: error: 'struct arm_pmu' has no member named 'filter_match'

From: kernel test robot
Date: Tue Aug 30 2022 - 20:02:46 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/wip.rewrite
head: 1a76bb2b00e68728753191bdc81ce890db4dd783
commit: 1a76bb2b00e68728753191bdc81ce890db4dd783 [8/8] Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
config: arm-defconfig (https://download.01.org/0day-ci/archive/20220831/202208310737.wF54G4Lj-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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/peterz/queue.git/commit/?id=1a76bb2b00e68728753191bdc81ce890db4dd783
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue perf/wip.rewrite
git checkout 1a76bb2b00e68728753191bdc81ce890db4dd783
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

drivers/perf/arm_pmu.c: In function 'armpmu_filter_match':
>> drivers/perf/arm_pmu.c:560:26: error: 'struct arm_pmu' has no member named 'filter_match'
560 | if (ret && armpmu->filter_match)
| ^~
drivers/perf/arm_pmu.c:561:30: error: 'struct arm_pmu' has no member named 'filter_match'
561 | return armpmu->filter_match(event);
| ^~
drivers/perf/arm_pmu.c: In function '__armpmu_alloc':
>> drivers/perf/arm_pmu.c:888:18: error: 'struct pmu' has no member named 'filter_match'
888 | .filter_match = armpmu_filter_match,
| ^~~~~~~~~~~~
>> drivers/perf/arm_pmu.c:888:35: error: initialization of 'void (*)(struct pmu *, unsigned int)' from incompatible pointer type 'int (*)(struct perf_event *)' [-Werror=incompatible-pointer-types]
888 | .filter_match = armpmu_filter_match,
| ^~~~~~~~~~~~~~~~~~~
drivers/perf/arm_pmu.c:888:35: note: (near initialization for '(anonymous).start_txn')
cc1: some warnings being treated as errors


vim +560 drivers/perf/arm_pmu.c

1b8873a0c6ec51 arch/arm/kernel/perf_event.c Jamie Iles 2010-02-02 547
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 548 /*
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 549 * In heterogeneous systems, events are specific to a particular
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 550 * microarchitecture, and aren't suitable for another. Thus, only match CPUs of
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 551 * the same microarchitecture.
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 552 */
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 553 static int armpmu_filter_match(struct perf_event *event)
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 554 {
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 555 struct arm_pmu *armpmu = to_arm_pmu(event->pmu);
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 556 unsigned int cpu = smp_processor_id();
ca2b497253ad01 drivers/perf/arm_pmu.c Will Deacon 2018-10-05 557 int ret;
ca2b497253ad01 drivers/perf/arm_pmu.c Will Deacon 2018-10-05 558
ca2b497253ad01 drivers/perf/arm_pmu.c Will Deacon 2018-10-05 559 ret = cpumask_test_cpu(cpu, &armpmu->supported_cpus);
ca2b497253ad01 drivers/perf/arm_pmu.c Will Deacon 2018-10-05 @560 if (ret && armpmu->filter_match)
ca2b497253ad01 drivers/perf/arm_pmu.c Will Deacon 2018-10-05 561 return armpmu->filter_match(event);
ca2b497253ad01 drivers/perf/arm_pmu.c Will Deacon 2018-10-05 562
ca2b497253ad01 drivers/perf/arm_pmu.c Will Deacon 2018-10-05 563 return ret;
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 564 }
c904e32a69b7c7 arch/arm/kernel/perf_event.c Mark Rutland 2015-05-13 565

:::::: The code at line 560 was first introduced by commit
:::::: ca2b497253ad01c80061a1f3ee9eb91b5d54a849 arm64: perf: Reject stand-alone CHAIN events for PMUv3

:::::: TO: Will Deacon <will.deacon@xxxxxxx>
:::::: CC: Will Deacon <will.deacon@xxxxxxx>

--
0-DAY CI Kernel Test Service
https://01.org/lkp