[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208260705.BOEvaIqD-lkp@intel.com>
Date: Fri, 26 Aug 2022 07:53:25 +0800
From: kernel test robot <lkp@...el.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [peterz-queue:perf/wip.rewrite 8/8] drivers/perf/arm_pmu.c:560:26:
error: 'struct arm_pmu' has no member named 'filter_match'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/wip.rewrite
head: b149fd14e2fb487c8d8b07d353421101c33bbf2b
commit: b149fd14e2fb487c8d8b07d353421101c33bbf2b [8/8] Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
config: arm-randconfig-r016-20220823 (https://download.01.org/0day-ci/archive/20220826/202208260705.BOEvaIqD-lkp@intel.com/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=b149fd14e2fb487c8d8b07d353421101c33bbf2b
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 b149fd14e2fb487c8d8b07d353421101c33bbf2b
# 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@...el.com>
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
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for ARM_CPU_SUSPEND
Depends on [n]: ARCH_SUSPEND_POSSIBLE [=n]
Selected by [y]:
- ARM_TEGRA_CPUIDLE [=y] && CPU_IDLE [=y] && (ARM [=y] || ARM64) && (ARCH_TEGRA [=n] || COMPILE_TEST [=y]) && !ARM64 && MMU [=y]
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@....com>
:::::: CC: Will Deacon <will.deacon@....com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists