Re: [rcu:dev.2020.08.10a 105/111] main.c:undefined reference to `rcu_read_unlock_strict'
From: Paul E. McKenney
Date: Wed Aug 12 2020 - 16:46:45 EST
On Wed, Aug 12, 2020 at 07:39:54AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.08.10a
> head: 9dd4d242c535c30266a08806314ea6b016f94617
> commit: 9e20110f8ef2745df8f4fe2d679114dccfaaa1af [105/111] rcu: Report QS for outermost PREEMPT=n rcu_read_unlock() for strict GPs
> config: arm-mainstone_defconfig (attached as .config)
> compiler: arm-linux-gnueabi-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
> git checkout 9e20110f8ef2745df8f4fe2d679114dccfaaa1af
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> arm-linux-gnueabi-ld: init/main.o: in function `rest_init':
> >> main.c:(.ref.text+0x34): undefined reference to `rcu_read_unlock_strict'
> >> arm-linux-gnueabi-ld: main.c:(.ref.text+0x58): undefined reference to `rcu_read_unlock_strict'
Good catch, broke single-CPU yet again! ;-)
Fixed, will be merge into original with attribution.
Thanx, Paul
> arm-linux-gnueabi-ld: kernel/fork.o: in function `get_mm_exe_file':
> >> fork.c:(.text+0x3ac): undefined reference to `rcu_read_unlock_strict'
> arm-linux-gnueabi-ld: kernel/fork.o: in function `pidfd_poll':
> fork.c:(.text+0x650): undefined reference to `rcu_read_unlock_strict'
> arm-linux-gnueabi-ld: kernel/fork.o: in function `_do_fork':
> fork.c:(.text+0x2e10): undefined reference to `rcu_read_unlock_strict'
> arm-linux-gnueabi-ld: kernel/fork.o:fork.c:(.text+0x2e8c): more undefined references to `rcu_read_unlock_strict' follow
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx