ppc476.c:undefined reference to `i2c_register_driver'

From: kernel test robot
Date: Thu Nov 30 2023 - 19:15:51 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3b47bc037bd44f142ac09848e8d3ecccc726be99
commit: 799c43415442414b1032580c47684cb709dfed6d kbuild: thin archives make default for all archs
date: 6 years ago
config: powerpc-randconfig-r026-20220819 (https://download.01.org/0day-ci/archive/20231201/202312010820.cmdwF5X9-lkp@xxxxxxxxx/config)
compiler: powerpc-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231201/202312010820.cmdwF5X9-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312010820.cmdwF5X9-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

powerpc-linux-ld: warning: drivers/of/unittest-data/overlay_base.dtb.o: missing .note.GNU-stack section implies executable stack
powerpc-linux-ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
powerpc-linux-ld: warning: drivers/of/unittest-data/overlay_base.dtb.o: missing .note.GNU-stack section implies executable stack
powerpc-linux-ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
powerpc-linux-ld: arch/powerpc/platforms/44x/ppc476.o: in function `avr_halt_system':
ppc476.c:(.text+0x50): undefined reference to `i2c_smbus_write_byte_data'
powerpc-linux-ld: arch/powerpc/platforms/44x/ppc476.o: in function `__machine_initcall_ppc47x_ppc47x_device_probe':
>> ppc476.c:(.init.text+0x88): undefined reference to `i2c_register_driver'

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki