[android-common:android16-6.12 1/1] drivers/net/phy/phylink.c:1658: undefined reference to `phy_lookup_setting'

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
Hi Alistair,

First bad commit (maybe != root cause):

tree:   https://android.googlesource.com/kernel/common android16-6.12
head:   c3360dde0a9e76954535eba2b9cb287adf4d6444
commit: 8b9a794068e9fe10f91796ee053afdbd5c01782c [1/1] Revert "ANDROID: suppress GKI configs for 32-bit builds"
config: arm-randconfig-002-20260815 (https://download.01.org/0day-ci/archive/20260815/[email protected]/config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260815/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   arm-linux-gnueabi-ld: arch/arm/mach-omap1/irq.o: in function `omap1_init_irq':
   arch/arm/mach-omap1/irq.c:171: undefined reference to `irq_alloc_generic_chip'
   arm-linux-gnueabi-ld: arch/arm/mach-omap1/irq.c:179: undefined reference to `irq_setup_generic_chip'
   arm-linux-gnueabi-ld: arch/arm/mach-omap1/irq.c:207: undefined reference to `irq_gc_mask_set_bit'
   arm-linux-gnueabi-ld: arch/arm/mach-omap1/irq.c:207: undefined reference to `irq_gc_mask_clr_bit'
   arm-linux-gnueabi-ld: arch/arm/mach-omap1/irq.c:207: undefined reference to `irq_gc_set_wake'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_set_fixed_link':
>> drivers/net/phy/phylink.c:1658: undefined reference to `phy_lookup_setting'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_link_down':
   drivers/net/phy/phylink.c:1456: undefined reference to `netif_carrier_off'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:1459: undefined reference to `netdev_printk'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_init_eee':
   drivers/net/phy/phylink.c:2840: undefined reference to `phy_init_eee'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_mii_c45_pcs_get_state':
   drivers/net/phy/phylink.c:3853: undefined reference to `mdiobus_c45_read'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_mii_emul_read':
   drivers/net/phy/phylink.c:2900: undefined reference to `swphy_read_reg'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_resolve_an_pause':
   drivers/net/phy/phylink.c:981: undefined reference to `linkmode_resolve_pause'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_major_config':
   drivers/net/phy/phylink.c:1203: undefined reference to `netdev_printk'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:1241: undefined reference to `netdev_printk'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:1253: undefined reference to `netdev_printk'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_get_pauseparam':
   drivers/net/phy/phylink.c:2711: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_disconnect_phy':
   drivers/net/phy/phylink.c:2144: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2155: undefined reference to `phy_disconnect'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_get_wol':
   drivers/net/phy/phylink.c:2403: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2409: undefined reference to `phy_ethtool_get_wol'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_set_wol':
   drivers/net/phy/phylink.c:2428: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2431: undefined reference to `phy_ethtool_set_wol'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_nway_reset':
   drivers/net/phy/phylink.c:2693: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2696: undefined reference to `phy_restart_aneg'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_get_eee_err':
   drivers/net/phy/phylink.c:2819: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2822: undefined reference to `phy_get_eee_err'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_get_eee':
   drivers/net/phy/phylink.c:2855: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2858: undefined reference to `phy_ethtool_get_eee'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_set_eee':
   drivers/net/phy/phylink.c:2873: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2876: undefined reference to `phy_ethtool_set_eee'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_mii_ioctl':
   drivers/net/phy/phylink.c:3059: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2943: undefined reference to `mdiobus_c45_read'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2947: undefined reference to `mdiobus_read'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2984: undefined reference to `mdiobus_c45_write'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2988: undefined reference to `mdiobus_write'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:3082: undefined reference to `phy_mii_ioctl'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_speed_down':
   drivers/net/phy/phylink.c:3130: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:3133: undefined reference to `phy_speed_down'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_speed_up':
   drivers/net/phy/phylink.c:3153: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:3156: undefined reference to `phy_speed_up'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_mii_c22_pcs_config':
   drivers/net/phy/phylink.c:3802: undefined reference to `mdiobus_modify_changed'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_mii_c22_pcs_config':
   include/linux/mdio.h:664: undefined reference to `mdiobus_modify'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_ksettings_get':
   drivers/net/phy/phylink.c:2476: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2479: undefined reference to `phy_ethtool_ksettings_get'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_mii_c22_pcs_an_restart':
   include/linux/mdio.h:652: undefined reference to `mdiobus_read'
   arm-linux-gnueabi-ld: include/linux/mdio.h:658: undefined reference to `mdiobus_write'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_mii_c22_pcs_get_state':
   include/linux/mdio.h:652: undefined reference to `mdiobus_read'
   arm-linux-gnueabi-ld: include/linux/mdio.h:652: undefined reference to `mdiobus_read'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_start':
   drivers/net/phy/phylink.c:2223: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2225: undefined reference to `netdev_printk'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2231: undefined reference to `netif_carrier_off'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2271: undefined reference to `phy_start'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_resume':
   drivers/net/phy/phylink.c:2364: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_phy_change':
   drivers/net/phy/phylink.c:1825: undefined reference to `phy_get_pause'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_stop':
   drivers/net/phy/phylink.c:2291: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2296: undefined reference to `phy_stop'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_suspend':
   drivers/net/phy/phylink.c:2327: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2341: undefined reference to `netif_carrier_off'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_set_pauseparam':
   drivers/net/phy/phylink.c:2731: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2766: undefined reference to `linkmode_set_pause'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2789: undefined reference to `phy_set_asym_pause'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_validate_mac_and_pcs':
   drivers/net/phy/phylink.c:678: undefined reference to `netdev_printk'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_validate_one':
   drivers/net/phy/phylink.c:726: undefined reference to `phy_get_rate_matching'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_connect_phy':
   drivers/net/phy/phylink.c:2013: undefined reference to `phy_attach_direct'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:1940: undefined reference to `phy_support_asym_pause'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:1882: undefined reference to `netdev_printk'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:1903: undefined reference to `phy_get_rate_matching'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:1949: undefined reference to `netdev_printk'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:1960: undefined reference to `phy_attached_info_irq'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:1961: undefined reference to `netdev_printk'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:1989: undefined reference to `phy_request_interrupt'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2047: undefined reference to `phy_detach'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.o: in function `phylink_ethtool_ksettings_set':
   drivers/net/phy/phylink.c:2528: undefined reference to `rtnl_is_locked'
   arm-linux-gnueabi-ld: drivers/net/phy/phylink.c:2555: undefined reference to `phy_ethtool_ksettings_set'

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for PHYLINK
   Depends on [n]: NETDEVICES [=n]
   Selected by [y]:
   - GKI_HIDDEN_ETHERNET_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for CAN_RX_OFFLOAD
   Depends on [n]: NETDEVICES [=n] && CAN_DEV [=n] && CAN_NETLINK [=n]
   Selected by [y]:
   - GKI_HIDDEN_MCP251XFD_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for NET_DEVLINK
   Depends on [n]: NET [=n]
   Selected by [y]:
   - GKI_HIDDEN_NET_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for PAGE_POOL
   Depends on [n]: NET [=n]
   Selected by [y]:
   - GKI_HIDDEN_NET_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for NET_PTP_CLASSIFY
   Depends on [n]: NET [=n]
   Selected by [y]:
   - GKI_HIDDEN_NET_CONFIGS [=y]


vim +1658 drivers/net/phy/phylink.c

ce0aa27ff3f68ed Russell King 2017-07-25  1637  
4b3fc475c61fa87 Russell King 2024-09-06  1638  /**
4b3fc475c61fa87 Russell King 2024-09-06  1639   * phylink_set_fixed_link() - set the fixed link
4b3fc475c61fa87 Russell King 2024-09-06  1640   * @pl: a pointer to a &struct phylink returned from phylink_create()
4b3fc475c61fa87 Russell King 2024-09-06  1641   * @state: a pointer to a struct phylink_link_state.
4b3fc475c61fa87 Russell King 2024-09-06  1642   *
4b3fc475c61fa87 Russell King 2024-09-06  1643   * This function is used when the link parameters are known and do not change,
4b3fc475c61fa87 Russell King 2024-09-06  1644   * making it suitable for certain types of network connections.
4b3fc475c61fa87 Russell King 2024-09-06  1645   *
4b3fc475c61fa87 Russell King 2024-09-06  1646   * Returns: zero on success or negative error code.
4b3fc475c61fa87 Russell King 2024-09-06  1647   */
4b3fc475c61fa87 Russell King 2024-09-06  1648  int phylink_set_fixed_link(struct phylink *pl,
4b3fc475c61fa87 Russell King 2024-09-06  1649  			   const struct phylink_link_state *state)
4b3fc475c61fa87 Russell King 2024-09-06  1650  {
4b3fc475c61fa87 Russell King 2024-09-06  1651  	const struct phy_setting *s;
4b3fc475c61fa87 Russell King 2024-09-06  1652  	unsigned long *adv;
4b3fc475c61fa87 Russell King 2024-09-06  1653  
4b3fc475c61fa87 Russell King 2024-09-06  1654  	if (pl->cfg_link_an_mode != MLO_AN_PHY || !state ||
4b3fc475c61fa87 Russell King 2024-09-06  1655  	    !test_bit(PHYLINK_DISABLE_STOPPED, &pl->phylink_disable_state))
4b3fc475c61fa87 Russell King 2024-09-06  1656  		return -EINVAL;
4b3fc475c61fa87 Russell King 2024-09-06  1657  
4b3fc475c61fa87 Russell King 2024-09-06 @1658  	s = phy_lookup_setting(state->speed, state->duplex,
4b3fc475c61fa87 Russell King 2024-09-06  1659  			       pl->supported, true);
4b3fc475c61fa87 Russell King 2024-09-06  1660  	if (!s)
4b3fc475c61fa87 Russell King 2024-09-06  1661  		return -EINVAL;
4b3fc475c61fa87 Russell King 2024-09-06  1662  
4b3fc475c61fa87 Russell King 2024-09-06  1663  	adv = pl->link_config.advertising;
4b3fc475c61fa87 Russell King 2024-09-06  1664  	linkmode_zero(adv);
4b3fc475c61fa87 Russell King 2024-09-06  1665  	linkmode_set_bit(s->bit, adv);
4b3fc475c61fa87 Russell King 2024-09-06  1666  	linkmode_set_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, adv);
4b3fc475c61fa87 Russell King 2024-09-06  1667  
4b3fc475c61fa87 Russell King 2024-09-06  1668  	pl->link_config.speed = state->speed;
4b3fc475c61fa87 Russell King 2024-09-06  1669  	pl->link_config.duplex = state->duplex;
4b3fc475c61fa87 Russell King 2024-09-06  1670  	pl->link_config.link = 1;
4b3fc475c61fa87 Russell King 2024-09-06  1671  	pl->link_config.an_complete = 1;
4b3fc475c61fa87 Russell King 2024-09-06  1672  
4b3fc475c61fa87 Russell King 2024-09-06  1673  	pl->cfg_link_an_mode = MLO_AN_FIXED;
4b3fc475c61fa87 Russell King 2024-09-06  1674  	pl->cur_link_an_mode = pl->cfg_link_an_mode;
4b3fc475c61fa87 Russell King 2024-09-06  1675  
4b3fc475c61fa87 Russell King 2024-09-06  1676  	return 0;
4b3fc475c61fa87 Russell King 2024-09-06  1677  }
4b3fc475c61fa87 Russell King 2024-09-06  1678  EXPORT_SYMBOL_GPL(phylink_set_fixed_link);
4b3fc475c61fa87 Russell King 2024-09-06  1679  

:::::: The code at line 1658 was first introduced by commit
:::::: 4b3fc475c61fa8733a9acc9d743f6cc9ca4915f5 net: phylink: Add phylink_set_fixed_link() to configure fixed link state in phylink

:::::: TO: Russell King <[email protected]>
:::::: CC: David S. Miller <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.