tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git tmp
head: 13665f1f8b5d501b40b1bc8448b0a032c7f04cc2
commit: b2361b370255e438748d7407fe13051a4a497122 [12127/12184] powerpc/perf: power10
Performance Monitoring support
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.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/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable tmp
git checkout b2361b370255e438748d7407fe13051a4a497122
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/powerpc/perf/isa207-common.c: In function 'is_event_valid':
> arch/powerpc/perf/isa207-common.c:58:22: error:
'CPU_FTR_ARCH_31' undeclared (first use in this function); did you mean
'CPU_FTR_ARCH_300'?
58 | if (cpu_has_feature(CPU_FTR_ARCH_31))
| ^~~~~~~~~~~~~~~
| CPU_FTR_ARCH_300
arch/powerpc/perf/isa207-common.c:58:22: note: each undeclared identifier is reported
only once for each function it appears in
arch/powerpc/perf/isa207-common.c: In function 'sdar_mod_val':
arch/powerpc/perf/isa207-common.c:76:22: error: 'CPU_FTR_ARCH_31' undeclared
(first use in this function); did you mean 'CPU_FTR_ARCH_300'?
76 | if (cpu_has_feature(CPU_FTR_ARCH_31))
| ^~~~~~~~~~~~~~~
| CPU_FTR_ARCH_300
arch/powerpc/perf/isa207-common.c: In function 'is_thresh_cmp_valid':
arch/powerpc/perf/isa207-common.c:149:22: error: 'CPU_FTR_ARCH_31' undeclared
(first use in this function); did you mean 'CPU_FTR_ARCH_300'?
149 | if (cpu_has_feature(CPU_FTR_ARCH_31))
| ^~~~~~~~~~~~~~~
| CPU_FTR_ARCH_300
arch/powerpc/perf/isa207-common.c: In function 'isa207_get_constraint':
arch/powerpc/perf/isa207-common.c:268:22: error: 'CPU_FTR_ARCH_31' undeclared
(first use in this function); did you mean 'CPU_FTR_ARCH_300'?
268 | if (cpu_has_feature(CPU_FTR_ARCH_31))
| ^~~~~~~~~~~~~~~
| CPU_FTR_ARCH_300
arch/powerpc/perf/isa207-common.c: In function 'isa207_compute_mmcr':
arch/powerpc/perf/isa207-common.c:474:25: error: 'CPU_FTR_ARCH_31' undeclared
(first use in this function); did you mean 'CPU_FTR_ARCH_300'?
474 | if (!cpu_has_feature(CPU_FTR_ARCH_31)) {
| ^~~~~~~~~~~~~~~
| CPU_FTR_ARCH_300
> arch/powerpc/perf/isa207-common.c:533:8: error: 'struct
mmcr_regs' has no member named 'mmcr3'; did you mean 'mmcr0'?
533 | mmcr->mmcr3 = mmcr3;
| ^~~~~
| mmcr0
--
> arch/powerpc/perf/power10-pmu.c:385:7: error:
'PPMU_ARCH_31' undeclared here (not in a function); did you mean
'PPMU_ARCH_207S'?
385 | PPMU_ARCH_31,
| ^~~~~~~~~~~~
| PPMU_ARCH_207S
> arch/powerpc/perf/power10-pmu.c:388:19: error: initialization of
'int (*)[7][3][2]' from incompatible pointer type 'u64 (*)[7][3][2]' {aka
'long long unsigned int (*)[7][3][2]'} [-Werror=incompatible-pointer-types]
388 | .cache_events = &power10_cache_events,
| ^
arch/powerpc/perf/power10-pmu.c:388:19: note: (near initialization for
'power10_pmu.cache_events')
cc1: some warnings being treated as errors
vim +58 arch/powerpc/perf/isa207-common.c
53
54 static bool is_event_valid(u64 event)
55 {
56 u64 valid_mask = EVENT_VALID_MASK;
57
58 if (cpu_has_feature(CPU_FTR_ARCH_31))
59 valid_mask =
p10_EVENT_VALID_MASK;
60 else if (cpu_has_feature(CPU_FTR_ARCH_300))
61 valid_mask = p9_EVENT_VALID_MASK;
62
63 return !(event & ~valid_mask);
64 }
65
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org