[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202209112130.OvNEixzX-lkp@intel.com>
Date: Sun, 11 Sep 2022 21:38:57 +0800
From: kernel test robot <lkp@...el.com>
To: Mark Brown <broonie@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [broonie-misc:arm64-sysreg-gen-5 1/6]
drivers/perf/arm_spe_pmu.c:677:14: error: 'ID_AA64DFR0_PMSVER_8_2'
undeclared; did you mean 'ID_AA64DFR0_PMSVer_8_2'?
Hi Mark,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git arm64-sysreg-gen-5
head: d5894091d540f67fb56d318821cd8524851b831d
commit: a3ec6c6e253a74c3cc08ca06c50e817131c932d3 [1/6] arm64/sysreg: Align field names in ID_AA64DFR0_EL1 with architecture
config: arm64-allyesconfig
compiler: aarch64-linux-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/broonie/misc.git/commit/?id=a3ec6c6e253a74c3cc08ca06c50e817131c932d3
git remote add broonie-misc https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git
git fetch --no-tags broonie-misc arm64-sysreg-gen-5
git checkout a3ec6c6e253a74c3cc08ca06c50e817131c932d3
# 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=arm64 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_spe_pmu.c: In function 'arm_spe_pmsevfr_res0':
>> drivers/perf/arm_spe_pmu.c:677:14: error: 'ID_AA64DFR0_PMSVER_8_2' undeclared (first use in this function); did you mean 'ID_AA64DFR0_PMSVer_8_2'?
677 | case ID_AA64DFR0_PMSVER_8_2:
| ^~~~~~~~~~~~~~~~~~~~~~
| ID_AA64DFR0_PMSVer_8_2
drivers/perf/arm_spe_pmu.c:677:14: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/perf/arm_spe_pmu.c:679:14: error: 'ID_AA64DFR0_PMSVER_8_3' undeclared (first use in this function); did you mean 'ID_AA64DFR0_PMSVer_8_3'?
679 | case ID_AA64DFR0_PMSVER_8_3:
| ^~~~~~~~~~~~~~~~~~~~~~
| ID_AA64DFR0_PMSVer_8_3
drivers/perf/arm_spe_pmu.c: In function '__arm_spe_pmu_dev_probe':
>> drivers/perf/arm_spe_pmu.c:961:52: error: 'ID_AA64DFR0_PMSVER_SHIFT' undeclared (first use in this function); did you mean 'ID_AA64DFR0_PMSVer_SHIFT'?
961 | ID_AA64DFR0_PMSVER_SHIFT);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| ID_AA64DFR0_PMSVer_SHIFT
--
drivers/hwtracing/coresight/coresight-etm4x-core.c: In function 'cpu_supports_sysreg_trace':
>> drivers/hwtracing/coresight/coresight-etm4x-core.c:969:26: error: 'ID_AA64DFR0_TRACEVER_SHIFT' undeclared (first use in this function); did you mean 'ID_AA64DFR0_TraceVer_SHIFT'?
969 | return ((dfr0 >> ID_AA64DFR0_TRACEVER_SHIFT) & 0xfUL) > 0;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| ID_AA64DFR0_TraceVer_SHIFT
drivers/hwtracing/coresight/coresight-etm4x-core.c:969:26: note: each undeclared identifier is reported only once for each function it appears in
drivers/hwtracing/coresight/coresight-etm4x-core.c: In function 'cpu_detect_trace_filtering':
>> drivers/hwtracing/coresight/coresight-etm4x-core.c:1057:57: error: 'ID_AA64DFR0_TRACE_FILT_SHIFT' undeclared (first use in this function); did you mean 'ID_AA64DFR0_TraceFilt_SHIFT'?
1057 | if (!cpuid_feature_extract_unsigned_field(dfr0, ID_AA64DFR0_TRACE_FILT_SHIFT))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ID_AA64DFR0_TraceFilt_SHIFT
drivers/hwtracing/coresight/coresight-etm4x-core.c: In function 'cpu_supports_sysreg_trace':
drivers/hwtracing/coresight/coresight-etm4x-core.c:970:1: error: control reaches end of non-void function [-Werror=return-type]
970 | }
| ^
cc1: some warnings being treated as errors
--
In file included from drivers/hwtracing/coresight/coresight-trbe.c:22:
drivers/hwtracing/coresight/coresight-trbe.h: In function 'is_trbe_available':
>> drivers/hwtracing/coresight/coresight-trbe.h:23:76: error: 'ID_AA64DFR0_TRBE_SHIFT' undeclared (first use in this function); did you mean 'ID_AA64DFR0_WRPs_SHIFT'?
23 | unsigned int trbe = cpuid_feature_extract_unsigned_field(aa64dfr0, ID_AA64DFR0_TRBE_SHIFT);
| ^~~~~~~~~~~~~~~~~~~~~~
| ID_AA64DFR0_WRPs_SHIFT
drivers/hwtracing/coresight/coresight-trbe.h:23:76: note: each undeclared identifier is reported only once for each function it appears in
vim +677 drivers/perf/arm_spe_pmu.c
d5d9696b03808b Will Deacon 2016-09-22 673
4a669e2432fce9 Wei Li 2020-12-03 674 static u64 arm_spe_pmsevfr_res0(u16 pmsver)
4a669e2432fce9 Wei Li 2020-12-03 675 {
4a669e2432fce9 Wei Li 2020-12-03 676 switch (pmsver) {
4a669e2432fce9 Wei Li 2020-12-03 @677 case ID_AA64DFR0_PMSVER_8_2:
4a669e2432fce9 Wei Li 2020-12-03 678 return SYS_PMSEVFR_EL1_RES0_8_2;
4a669e2432fce9 Wei Li 2020-12-03 @679 case ID_AA64DFR0_PMSVER_8_3:
4a669e2432fce9 Wei Li 2020-12-03 680 /* Return the highest version we support in default */
4a669e2432fce9 Wei Li 2020-12-03 681 default:
4a669e2432fce9 Wei Li 2020-12-03 682 return SYS_PMSEVFR_EL1_RES0_8_3;
4a669e2432fce9 Wei Li 2020-12-03 683 }
4a669e2432fce9 Wei Li 2020-12-03 684 }
4a669e2432fce9 Wei Li 2020-12-03 685
:::::: The code at line 677 was first introduced by commit
:::::: 4a669e2432fce9c01522a8453460e89f877dccd4 drivers/perf: Add support for ARMv8.3-SPE
:::::: TO: Wei Li <liwei391@...wei.com>
:::::: CC: Will Deacon <will@...nel.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (358087 bytes)
Powered by blists - more mailing lists