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/next/linux-next.git master head: 4c9ca5b1597e3222177ba2a94658f78fa5ef4f58 commit: c0357a73fa4a96d8ed9ee46e9927d9fcbc9d0828 [6855/7934] arm64/sysreg: Align field names in ID_AA64DFR0_EL1 with architecture config: arm64-randconfig-r036-20220919 (https://download.01.org/0day-ci/archive/20220920/202209201518.HcP4DoUZ-lkp@xxxxxxxxx/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) 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 # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=c0357a73fa4a96d8ed9ee46e9927d9fcbc9d0828 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout c0357a73fa4a96d8ed9ee46e9927d9fcbc9d0828 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/clk/rockchip/ drivers/perf/ 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_spe_pmu.c:677:7: error: use of undeclared identifier 'ID_AA64DFR0_PMSVER_8_2' case ID_AA64DFR0_PMSVER_8_2: ^ >> drivers/perf/arm_spe_pmu.c:679:7: error: use of undeclared identifier 'ID_AA64DFR0_PMSVER_8_3' case ID_AA64DFR0_PMSVER_8_3: ^ >> drivers/perf/arm_spe_pmu.c:961:10: error: use of undeclared identifier 'ID_AA64DFR0_PMSVER_SHIFT' ID_AA64DFR0_PMSVER_SHIFT); ^ 3 errors generated. vim +/ID_AA64DFR0_PMSVER_8_2 +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@xxxxxxxxxx> :::::: CC: Will Deacon <will@xxxxxxxxxx> -- 0-DAY CI Kernel Test Service https://01.org/lkp