[linusw-pinctrl:b4/abx500-pinctrl 15/33] loongarch64-linux-ld: pinctrl-sx150x.c:undefined reference to `i2c_smbus_write_byte_data'

kernel test robot
2025-04-17T16:50:05Z

tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git b4/abx500-pinctrl
head: 4fff328b120e7e541076abb58810bb845722e6d0
commit: c4d1b2ee4407b0b12e0dade40361eb86c1c710ed [15/33] pinctrl: sx150x: enable building modules with COMPILE_TEST=y
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250418/202504180045.r5xtbS4v-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250418/202504180045.r5xtbS4v-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504180045.r5xtbS4v-lkp@intel.com/

All errors (new ones prefixed by >>):

loongarch64-linux-ld: drivers/pinctrl/pinctrl-sx150x.o: in function `sx150x_regmap_reg_read':
pinctrl-sx150x.c:(.text+0xb3c): undefined reference to `i2c_smbus_read_byte_data'
loongarch64-linux-ld: drivers/pinctrl/pinctrl-sx150x.o: in function `sx150x_probe':
pinctrl-sx150x.c:(.text+0xd98): undefined reference to `i2c_get_match_data'
>> loongarch64-linux-ld: pinctrl-sx150x.c:(.text+0xf44): undefined reference to `i2c_smbus_write_byte_data'
loongarch64-linux-ld: pinctrl-sx150x.c:(.text+0xf90): undefined reference to `i2c_smbus_write_byte_data'
loongarch64-linux-ld: drivers/pinctrl/pinctrl-sx150x.o: in function `sx150x_regmap_reg_write':
pinctrl-sx150x.c:(.text+0x19b4): undefined reference to `i2c_smbus_write_byte_data'
loongarch64-linux-ld: drivers/pinctrl/pinctrl-sx150x.o: in function `sx150x_init':
pinctrl-sx150x.c:(.init.text+0x28): undefined reference to `i2c_register_driver'

--
0-DAY CI Kernel Test Service