On Thu, May 28, 2020 at 12:17:23AM +0800, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
> dev.2020.05.26b
> head: 795279db1396bf66621fa3f343fa990fe543b89e
> commit: 786a25497743696d79592b864cafbfe48787e6e1 [51/70] refperf: Add a test
> to measure performance of read-side synchronization
> config: powerpc-allyesconfig (attached as .config)
> compiler: powerpc64-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
> git checkout 786a25497743696d79592b864cafbfe48787e6e1
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross
> ARCH=powerpc
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kbuild test robot <[email protected]>
>
> All errors (new ones prefixed by >>, old ones prefixed by <<):
>
> >> powerpc64-linux-ld: kernel/rcu/refperf.o:(.discard+0x0): multiple
> >> definition of `__pcpu_unique_srcu_ctl_perf_srcu_data';
> >> kernel/rcu/rcuperf.o:(.discard+0x0): first defined here
Ah, yes, despite the "static" keyword, the names must be unique throughout
the kernel. Will fix!
Thanx, Paul