ppc476.c:(.text.avr_halt_system+0x20): undefined reference to `i2c_smbus_write_byte_data'

From: kernel test robot
Date: Fri Dec 01 2023 - 10:47:23 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 994d5c58e50e91bb02c7be4a91d5186292a895c8
commit: 4c1d9bb0b5d3c0b3468ac8e68a05972eb957630f powerpc: Allow LD_DEAD_CODE_DATA_ELIMINATION to be selected
date: 6 years ago
config: powerpc-randconfig-r026-20220819 (https://download.01.org/0day-ci/archive/20231201/202312012338.BNlHA8Mr-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/202312012338.BNlHA8Mr-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/202312012338.BNlHA8Mr-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: orphan section `.gnu.hash' from `arch/powerpc/kernel/head_44x.o' being placed in section `.gnu.hash'
powerpc-linux-ld: warning: orphan section `.branch_lt' from `arch/powerpc/kernel/head_44x.o' being placed in section `.branch_lt'
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 `__machine_initcall_ppc47x_ppc47x_device_probe':
ppc476.c:(.init.text+0x88): undefined reference to `i2c_register_driver'
powerpc-linux-ld: arch/powerpc/platforms/44x/ppc476.o: in function `avr_halt_system':
>> ppc476.c:(.text.avr_halt_system+0x20): undefined reference to `i2c_smbus_write_byte_data'

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