Re: [PATCH net-next v3 6/7] net: usb: lan78xx: Transition get/set_pause to phylink

kernel test robot
2025-03-15T10:58:25Z

Hi Oleksij,

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/Oleksij-Rempel/net-usb-lan78xx-Convert-to-PHYlink-for-improved-PHY-and-MAC-management/20250310-200116
base: net-next/main
patch link: https://lore.kernel.org/r/20250310115737.784047-7-o.rempel%40pengutronix.de
patch subject: [PATCH net-next v3 6/7] net: usb: lan78xx: Transition get/set_pause to phylink
config: i386-randconfig-006-20250315 (https://download.01.org/0day-ci/archive/20250315/202503151846.f7B5hHIU-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250315/202503151846.f7B5hHIU-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/202503151846.f7B5hHIU-lkp@intel.com/

All errors (new ones prefixed by >>):

ld: drivers/net/usb/lan78xx.o: in function `lan78xx_set_link_ksettings':
drivers/net/usb/lan78xx.c:1874: undefined reference to `phylink_ethtool_ksettings_set'
ld: drivers/net/usb/lan78xx.o: in function `lan78xx_get_link_ksettings':
drivers/net/usb/lan78xx.c:1866: undefined reference to `phylink_ethtool_ksettings_get'
ld: drivers/net/usb/lan78xx.o: in function `lan78xx_set_pause':
>> drivers/net/usb/lan78xx.c:1890: undefined reference to `phylink_ethtool_set_pauseparam'
ld: drivers/net/usb/lan78xx.o: in function `lan78xx_get_pause':
>> drivers/net/usb/lan78xx.c:1882: undefined reference to `phylink_ethtool_get_pauseparam'
ld: drivers/net/usb/lan78xx.o: in function `lan78xx_open':
drivers/net/usb/lan78xx.c:3205: undefined reference to `phylink_start'
ld: drivers/net/usb/lan78xx.o: in function `lan78xx_stop':
drivers/net/usb/lan78xx.c:3275: undefined reference to `phylink_stop'
ld: drivers/net/usb/lan78xx.o: in function `lan78xx_disconnect':
drivers/net/usb/lan78xx.c:4300: undefined reference to `phylink_stop'
ld: drivers/net/usb/lan78xx.c:4301: undefined reference to `phylink_disconnect_phy'
ld: drivers/net/usb/lan78xx.c:4312: undefined reference to `phylink_destroy'
ld: drivers/net/usb/lan78xx.o: in function `lan78xx_reset_resume':
drivers/net/usb/lan78xx.c:5098: undefined reference to `phylink_start'
ld: drivers/net/usb/lan78xx.o: in function `lan78xx_phy_init':
drivers/net/usb/lan78xx.c:2603: undefined reference to `phylink_connect_phy'
ld: drivers/net/usb/lan78xx.c:2571: undefined reference to `phylink_set_fixed_link'
ld: drivers/net/usb/lan78xx.o: in function `lan78xx_phylink_setup':
drivers/net/usb/lan78xx.c:2541: undefined reference to `phylink_create'
ld: drivers/net/usb/lan78xx.o: in function `lan78xx_probe':
drivers/net/usb/lan78xx.c:4534: undefined reference to `phylink_disconnect_phy'
ld: drivers/net/usb/lan78xx.c:4536: undefined reference to `phylink_destroy'

vim +1890 drivers/net/usb/lan78xx.c

1876
1877 static void lan78xx_get_pause(struct net_device *net,
1878 struct ethtool_pauseparam *pause)
1879 {
1880 struct lan78xx_net *dev = netdev_priv(net);
1881
> 1882 phylink_ethtool_get_pauseparam(dev->phylink, pause);
1883 }
1884
1885 static int lan78xx_set_pause(struct net_device *net,
1886 struct ethtool_pauseparam *pause)
1887 {
1888 struct lan78xx_net *dev = netdev_priv(net);
1889
> 1890 return phylink_ethtool_set_pauseparam(dev->phylink, pause);
1891 }
1892

--
0-DAY CI Kernel Test Service