Re: [rcu:rcu/test 138/143] rcutorture.c:(.text.rcu_torture_reader_do_mbchk+0x30): undefined reference to `torture_num_online_cpus'

From: Paul E. McKenney
Date: Wed Dec 23 2020 - 10:16:02 EST


On Wed, Dec 23, 2020 at 10:14:02PM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/test
> head: 4c4c8e04a7f8522de634aa062f4cd6b8b80c151b
> commit: cf516f4063cae6b69de6dd734d6c57901d24f112 [138/143] torture: Maintain torture-specific set of CPUs-online books
> config: mips-randconfig-r024-20201221 (attached as .config)
> compiler: mipsel-linux-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
> # https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/commit/?id=cf516f4063cae6b69de6dd734d6c57901d24f112
> git remote add rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
> git fetch --no-tags rcu rcu/test
> git checkout cf516f4063cae6b69de6dd734d6c57901d24f112
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> mipsel-linux-ld: kernel/rcu/rcutorture.o: in function `rcu_torture_reader_do_mbchk':
> >> rcutorture.c:(.text.rcu_torture_reader_do_mbchk+0x30): undefined reference to `torture_num_online_cpus'
> mipsel-linux-ld: kernel/rcu/rcutorture.o: in function `rcu_torture_reader':
> >> rcutorture.c:(.text.rcu_torture_reader+0x118): undefined reference to `torture_num_online_cpus'

Good catch, fix applied with attribution, thank you!

Thanx, Paul