Re: [PATCH v3 2/2] perf: Fujitsu: Add the Uncore PCI PMU driver

From: kernel test robot
Date: Fri Jan 10 2025 - 14:25:06 EST


Hi Yoshihiro,

kernel test robot noticed the following build errors:

[auto build test ERROR on arm-perf/for-next/perf]
[also build test ERROR on linus/master v6.13-rc6 next-20250110]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Yoshihiro-Furudera/perf-Fujitsu-Add-the-Uncore-MAC-PMU-driver/20250109-135249
base: https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git for-next/perf
patch link: https://lore.kernel.org/r/20250109054544.2342442-3-fj5100bi%40fujitsu.com
patch subject: [PATCH v3 2/2] perf: Fujitsu: Add the Uncore PCI PMU driver
config: sparc-allmodconfig (https://download.01.org/0day-ci/archive/20250111/202501110253.sgjIluLA-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250111/202501110253.sgjIluLA-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501110253.sgjIluLA-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

drivers/perf/fujitsu_pci_pmu.c: In function 'fujitsu_pci_counter_start':
>> drivers/perf/fujitsu_pci_pmu.c:41:31: error: implicit declaration of function 'FIELD_GET' [-Wimplicit-function-declaration]
41 | #define EVSEL(__val) FIELD_GET(PCI_EVTYPE_MASK, __val)
| ^~~~~~~~~
drivers/perf/fujitsu_pci_pmu.c:100:24: note: in expansion of macro 'EVSEL'
100 | writeq_relaxed(EVSEL(event->attr.config), pcipmu->regs + PCI_PM_EVTYPE(idx));
| ^~~~~


vim +/FIELD_GET +41 drivers/perf/fujitsu_pci_pmu.c

39
40 /* PCI_PM_EVTYPEx */
> 41 #define EVSEL(__val) FIELD_GET(PCI_EVTYPE_MASK, __val)
42

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