Re: ld.lld: error: undefined symbol: cpus_booted_once_mask

From: Marc Zyngier
Date: Sun Jan 23 2022 - 03:48:36 EST


On 2022-01-22 21:52, kernel test robot wrote:
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
master
head: 1c52283265a462a100ae63ddf58b4e5884acde86
commit: 835f442fdbce33a47a6bde356643fd7e3ef7ec1b irqchip/gic-v3-its:
Limit memreserve cpuhp state lifetime
date: 5 weeks ago
config: arm-randconfig-r035-20220122
(https://download.01.org/0day-ci/archive/20220123/202201230454.RAEWzGlV-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project
7b3d30728816403d1fd73cc5082e9fb761262bce)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
#
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=835f442fdbce33a47a6bde356643fd7e3ef7ec1b
git remote add linus
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 835f442fdbce33a47a6bde356643fd7e3ef7ec1b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1
O=build_dir ARCH=arm SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

ld.lld: error: undefined symbol: cpus_booted_once_mask
>>> referenced by irq-gic-v3-its.c
>>> irqchip/irq-gic-v3-its.o:(its_cpu_memreserve_lpi)
in archive drivers/built-in.a

Fixed by [1], which is already queued.

M.

[1] https://lore.kernel.org/r/20220122151614.133766-1-ardb@xxxxxxxxxx
--
Jazz is not dead. It just smells funny...