mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mengyuan Lou <mengyuanlou@net-swift.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Jakub Kicinski <kuba@kernel.org>
Subject: drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:225: undefined reference to `phylink_ethtool_nway_reset'
Date: Sun, 14 Dec 2025 08:30:33 +0800	[thread overview]
Message-ID: <202512140852.VA3cquzw-lkp@intel.com> (raw)

Hi Mengyuan,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4a298a43f5e339f48d2dda0665c02b88ee9a4e03
commit: a0008a3658a34a54e77f2568bdaa2626233b1459 net: wangxun: add ngbevf build
date:   5 months ago
config: powerpc64-randconfig-002-20251214 (https://download.01.org/0day-ci/archive/20251214/202512140852.VA3cquzw-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 10.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251214/202512140852.VA3cquzw-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/202512140852.VA3cquzw-lkp@intel.com/

All errors (new ones prefixed by >>):

   powerpc64-linux-ld: warning: discarding dynamic section .glink
   powerpc64-linux-ld: warning: discarding dynamic section .plt
   powerpc64-linux-ld: linkage table error against `phylink_ethtool_get_pauseparam'
   powerpc64-linux-ld: stubs don't match calculated size
   powerpc64-linux-ld: can not build stubs: bad value
   powerpc64-linux-ld: drivers/net/ethernet/wangxun/libwx/wx_ethtool.o: in function `wx_nway_reset':
>> drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:225: undefined reference to `phylink_ethtool_nway_reset'
   powerpc64-linux-ld: drivers/net/ethernet/wangxun/libwx/wx_ethtool.o: in function `wx_get_link_ksettings':
>> drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:234: undefined reference to `phylink_ethtool_ksettings_get'
   powerpc64-linux-ld: drivers/net/ethernet/wangxun/libwx/wx_ethtool.o: in function `wx_set_link_ksettings':
>> drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:246: undefined reference to `phylink_ethtool_ksettings_set'
   powerpc64-linux-ld: drivers/net/ethernet/wangxun/libwx/wx_ethtool.o: in function `wx_get_pauseparam':
>> drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:258: undefined reference to `phylink_ethtool_get_pauseparam'
   powerpc64-linux-ld: drivers/net/ethernet/wangxun/libwx/wx_ethtool.o: in function `wx_set_pauseparam':
>> drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:270: undefined reference to `phylink_ethtool_set_pauseparam'


vim +225 drivers/net/ethernet/wangxun/libwx/wx_ethtool.c

e8e138cf7383cf Jiawen Wu 2024-01-03  217  
e8e138cf7383cf Jiawen Wu 2024-01-03  218  int wx_nway_reset(struct net_device *netdev)
e8e138cf7383cf Jiawen Wu 2024-01-03  219  {
e8e138cf7383cf Jiawen Wu 2024-01-03  220  	struct wx *wx = netdev_priv(netdev);
e8e138cf7383cf Jiawen Wu 2024-01-03  221  
39709fe4bacda6 Jiawen Wu 2025-05-21  222  	if (wx->mac.type == wx_mac_aml40)
2e5af6b2ae8532 Jiawen Wu 2025-02-21  223  		return -EOPNOTSUPP;
2e5af6b2ae8532 Jiawen Wu 2025-02-21  224  
e8e138cf7383cf Jiawen Wu 2024-01-03 @225  	return phylink_ethtool_nway_reset(wx->phylink);
e8e138cf7383cf Jiawen Wu 2024-01-03  226  }
e8e138cf7383cf Jiawen Wu 2024-01-03  227  EXPORT_SYMBOL(wx_nway_reset);
e8e138cf7383cf Jiawen Wu 2024-01-03  228  
e8e138cf7383cf Jiawen Wu 2024-01-03  229  int wx_get_link_ksettings(struct net_device *netdev,
e8e138cf7383cf Jiawen Wu 2024-01-03  230  			  struct ethtool_link_ksettings *cmd)
e8e138cf7383cf Jiawen Wu 2024-01-03  231  {
e8e138cf7383cf Jiawen Wu 2024-01-03  232  	struct wx *wx = netdev_priv(netdev);
e8e138cf7383cf Jiawen Wu 2024-01-03  233  
e8e138cf7383cf Jiawen Wu 2024-01-03 @234  	return phylink_ethtool_ksettings_get(wx->phylink, cmd);
e8e138cf7383cf Jiawen Wu 2024-01-03  235  }
e8e138cf7383cf Jiawen Wu 2024-01-03  236  EXPORT_SYMBOL(wx_get_link_ksettings);
e8e138cf7383cf Jiawen Wu 2024-01-03  237  
e8e138cf7383cf Jiawen Wu 2024-01-03  238  int wx_set_link_ksettings(struct net_device *netdev,
e8e138cf7383cf Jiawen Wu 2024-01-03  239  			  const struct ethtool_link_ksettings *cmd)
e8e138cf7383cf Jiawen Wu 2024-01-03  240  {
e8e138cf7383cf Jiawen Wu 2024-01-03  241  	struct wx *wx = netdev_priv(netdev);
e8e138cf7383cf Jiawen Wu 2024-01-03  242  
39709fe4bacda6 Jiawen Wu 2025-05-21  243  	if (wx->mac.type == wx_mac_aml40)
2e5af6b2ae8532 Jiawen Wu 2025-02-21  244  		return -EOPNOTSUPP;
2e5af6b2ae8532 Jiawen Wu 2025-02-21  245  
e8e138cf7383cf Jiawen Wu 2024-01-03 @246  	return phylink_ethtool_ksettings_set(wx->phylink, cmd);
e8e138cf7383cf Jiawen Wu 2024-01-03  247  }
e8e138cf7383cf Jiawen Wu 2024-01-03  248  EXPORT_SYMBOL(wx_set_link_ksettings);
2fe2ca09da953b Jiawen Wu 2024-01-03  249  
2fe2ca09da953b Jiawen Wu 2024-01-03  250  void wx_get_pauseparam(struct net_device *netdev,
2fe2ca09da953b Jiawen Wu 2024-01-03  251  		       struct ethtool_pauseparam *pause)
2fe2ca09da953b Jiawen Wu 2024-01-03  252  {
2fe2ca09da953b Jiawen Wu 2024-01-03  253  	struct wx *wx = netdev_priv(netdev);
2fe2ca09da953b Jiawen Wu 2024-01-03  254  
39709fe4bacda6 Jiawen Wu 2025-05-21  255  	if (wx->mac.type == wx_mac_aml40)
2e5af6b2ae8532 Jiawen Wu 2025-02-21  256  		return;
2e5af6b2ae8532 Jiawen Wu 2025-02-21  257  
2fe2ca09da953b Jiawen Wu 2024-01-03 @258  	phylink_ethtool_get_pauseparam(wx->phylink, pause);
2fe2ca09da953b Jiawen Wu 2024-01-03  259  }
2fe2ca09da953b Jiawen Wu 2024-01-03  260  EXPORT_SYMBOL(wx_get_pauseparam);
2fe2ca09da953b Jiawen Wu 2024-01-03  261  
2fe2ca09da953b Jiawen Wu 2024-01-03  262  int wx_set_pauseparam(struct net_device *netdev,
2fe2ca09da953b Jiawen Wu 2024-01-03  263  		      struct ethtool_pauseparam *pause)
2fe2ca09da953b Jiawen Wu 2024-01-03  264  {
2fe2ca09da953b Jiawen Wu 2024-01-03  265  	struct wx *wx = netdev_priv(netdev);
2fe2ca09da953b Jiawen Wu 2024-01-03  266  
39709fe4bacda6 Jiawen Wu 2025-05-21  267  	if (wx->mac.type == wx_mac_aml40)
2e5af6b2ae8532 Jiawen Wu 2025-02-21  268  		return -EOPNOTSUPP;
2e5af6b2ae8532 Jiawen Wu 2025-02-21  269  
2fe2ca09da953b Jiawen Wu 2024-01-03 @270  	return phylink_ethtool_set_pauseparam(wx->phylink, pause);
2fe2ca09da953b Jiawen Wu 2024-01-03  271  }
2fe2ca09da953b Jiawen Wu 2024-01-03  272  EXPORT_SYMBOL(wx_set_pauseparam);
883b5984a5d290 Jiawen Wu 2024-01-03  273  

:::::: The code at line 225 was first introduced by commit
:::::: e8e138cf7383cf820419fcbec63992e75a01467b net: libwx: add phylink to libwx

:::::: TO: Jiawen Wu <jiawenwu@trustnetic.com>
:::::: CC: David S. Miller <davem@davemloft.net>

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

             reply	other threads:[~2025-12-14  0:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-14  0:30 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-11-10  4:12 drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:225:undefined " kernel test robot
2025-11-10  8:06 ` mengyuanlou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202512140852.VA3cquzw-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mengyuanlou@net-swift.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®