Re: [PATCH v7 6/6] arm64: Enable perf events based hard lockup detector

From: kernel test robot
Date: Sun Sep 04 2022 - 18:59:03 EST


Hi Lecopzer,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on arm/for-next soc/for-next linus/master v6.0-rc4 next-20220901]
[cannot apply to xilinx-xlnx/master]
[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/Lecopzer-Chen/Support-hld-delayed-init-based-on-Pseudo-NMI-for/20220903-173641
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm64-randconfig-c033-20220904 (https://download.01.org/0day-ci/archive/20220905/202209050639.jDaWd49E-lkp@xxxxxxxxx/config)
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://github.com/intel-lab-lkp/linux/commit/de75eba8785b631eb168737fbff6dc31418cb852
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Lecopzer-Chen/Support-hld-delayed-init-based-on-Pseudo-NMI-for/20220903-173641
git checkout de75eba8785b631eb168737fbff6dc31418cb852
# 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

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

aarch64-linux-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-ld: Unexpected run-time procedure linkages detected!
aarch64-linux-ld: arch/arm64/kernel/perf_event.o: in function `armv8_pmu_driver_init':
>> arch/arm64/kernel/perf_event.c:1402: undefined reference to `retry_lockup_detector_init'


vim +1402 arch/arm64/kernel/perf_event.c

1391
1392 static int __init armv8_pmu_driver_init(void)
1393 {
1394 int ret;
1395
1396 if (acpi_disabled)
1397 ret = platform_driver_register(&armv8_pmu_driver);
1398 else
1399 ret = arm_pmu_acpi_probe(armv8_pmuv3_pmu_init);
1400
1401 if (!ret)
> 1402 retry_lockup_detector_init();
1403
1404 return ret;
1405 }
1406 device_initcall(armv8_pmu_driver_init)
1407

--
0-DAY CI Kernel Test Service
https://01.org/lkp