Hi Sami,
First bad commit (maybe != root cause):
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
testing-sami
head: e56488b39d994731d56acde6b19fa4d56d91bca5
commit: e56488b39d994731d56acde6b19fa4d56d91bca5 [1/1] kbuild: reuse vmlinux.o in
vmlinux_link
config: powerpc-randconfig-s001-20200524 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-240-gf0fe1cd9-dirty
git checkout e56488b39d994731d56acde6b19fa4d56d91bca5
# save the attached .config to linux build tree
make W=1 C=1 ARCH=powerpc CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
> powerpc64-linux-ld: warning: orphan section
`__timer_of_table' from `vmlinux.o' being placed in section `__timer_of_table'
vmlinux.o:arch/powerpc/lib/copyuser_64.S:81:(__ftr_alt_97+0x3c): relocation
truncated to fit: R_PPC64_REL14 against `.text'+4f6c0
vmlinux.o:arch/powerpc/lib/memcpy_64.S:56:(__ftr_alt_97+0xa0): relocation truncated to
fit: R_PPC64_REL14 against `.text'+4fe54
powerpc64-linux-ld: vmlinux.o: in function `PPC64_CACHES':
> arch/powerpc/lib/copypage_64.o:(.toc+0x4c98): undefined reference
to `node_reclaim_distance'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org