(.init.text+0x134): multiple definition of `plat_irq_setup'; arch/sh/kernel/cpu/sh2/setup-sh7619.o:(.init.text+0x30): first defined here

From: kbuild test robot
Date: Fri Mar 01 2019 - 04:10:26 EST


Hi Takashi,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7d762d69145a54d169f58e56d6dac57a5508debc
commit: c97617a81a7616d49bc3700959e08c6c6f447093 ALSA: hda/ca0132 - Fix build error without CONFIG_PCI
date: 3 weeks ago
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 8.2.0-11) 8.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout c97617a81a7616d49bc3700959e08c6c6f447093
# save the attached .config to linux build tree
GCC_VERSION=8.2.0 make.cross ARCH=sh

All errors (new ones prefixed by >>):

sh4-linux-gnu-ld: arch/sh/boards/of-generic.o: in function `plat_irq_setup':
>> (.init.text+0x134): multiple definition of `plat_irq_setup'; arch/sh/kernel/cpu/sh2/setup-sh7619.o:(.init.text+0x30): first defined here
sh4-linux-gnu-ld: arch/sh/boards/of-generic.o: in function `arch_init_clk_ops':
(.init.text+0x118): multiple definition of `arch_init_clk_ops'; arch/sh/kernel/cpu/sh2/clock-sh7619.o:(.init.text+0x0): first defined here

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip