Re: [PATCH net-next V2 3/5] net: lan743x: Register the platform device for sfp pluggable module

From: kernel test robot
Date: Sat Sep 14 2024 - 22:17:42 EST


Hi Raju,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url: https://github.com/intel-lab-lkp/linux/commits/Raju-Lakkaraju/net-lan743x-Add-SFP-support-check-flag/20240912-002444
base: net-next/main
patch link: https://lore.kernel.org/r/20240911161054.4494-4-Raju.Lakkaraju%40microchip.com
patch subject: [PATCH net-next V2 3/5] net: lan743x: Register the platform device for sfp pluggable module
config: x86_64-randconfig-003-20240914 (https://download.01.org/0day-ci/archive/20240915/202409151058.rOgbMAJJ-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240915/202409151058.rOgbMAJJ-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/202409151058.rOgbMAJJ-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: i2c_get_adapter_by_fwnode
>>> referenced by sfp.c:2981 (drivers/net/phy/sfp.c:2981)
>>> drivers/net/phy/sfp.o:(sfp_probe) in archive vmlinux.a
--
>> ld.lld: error: undefined symbol: i2c_put_adapter
>>> referenced by sfp.c:2989 (drivers/net/phy/sfp.c:2989)
>>> drivers/net/phy/sfp.o:(sfp_probe) in archive vmlinux.a
>>> referenced by sfp.c:2965 (drivers/net/phy/sfp.c:2965)
>>> drivers/net/phy/sfp.o:(sfp_cleanup) in archive vmlinux.a
--
>> ld.lld: error: undefined symbol: hwmon_device_unregister
>>> referenced by sfp.c:1640 (drivers/net/phy/sfp.c:1640)
>>> drivers/net/phy/sfp.o:(__sfp_sm_event) in archive vmlinux.a
--
>> ld.lld: error: undefined symbol: mdio_i2c_alloc
>>> referenced by sfp.c:707 (drivers/net/phy/sfp.c:707)
>>> drivers/net/phy/sfp.o:(__sfp_sm_event) in archive vmlinux.a
--
>> ld.lld: error: undefined symbol: hwmon_sanitize_name
>>> referenced by sfp.c:1611 (drivers/net/phy/sfp.c:1611)
>>> drivers/net/phy/sfp.o:(sfp_hwmon_probe) in archive vmlinux.a
--
>> ld.lld: error: undefined symbol: hwmon_device_register_with_info
>>> referenced by sfp.c:1617 (drivers/net/phy/sfp.c:1617)
>>> drivers/net/phy/sfp.o:(sfp_hwmon_probe) in archive vmlinux.a
--
>> ld.lld: error: undefined symbol: i2c_transfer
>>> referenced by sfp.c:648 (drivers/net/phy/sfp.c:648)
>>> drivers/net/phy/sfp.o:(sfp_i2c_read) in archive vmlinux.a
>>> referenced by sfp.c:680 (drivers/net/phy/sfp.c:680)
>>> drivers/net/phy/sfp.o:(sfp_i2c_write) in archive vmlinux.a

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for GP_PCI1XXXX
Depends on [n]: PCI [=y] && GPIOLIB [=y] && NVMEM_SYSFS [=n]
Selected by [y]:
- LAN743X [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_MICROCHIP [=y] && PCI [=y] && PTP_1588_CLOCK_OPTIONAL [=y]
WARNING: unmet direct dependencies detected for SFP
Depends on [m]: NETDEVICES [=y] && PHYLIB [=y] && I2C [=m] && PHYLINK [=y] && (HWMON [=m] || HWMON [=m]=n [=n])
Selected by [y]:
- LAN743X [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_MICROCHIP [=y] && PCI [=y] && PTP_1588_CLOCK_OPTIONAL [=y]
WARNING: unmet direct dependencies detected for I2C_PCI1XXXX
Depends on [m]: I2C [=m] && HAS_IOMEM [=y] && PCI [=y]
Selected by [y]:
- LAN743X [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_MICROCHIP [=y] && PCI [=y] && PTP_1588_CLOCK_OPTIONAL [=y]

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