All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiawen Wu <jiawenwu@trustnetic.com>
Cc: oe-kbuild-all@lists.linux.dev, Jakub Kicinski <kuba@kernel.org>,
	Vadim Fedorenko <vadim.fedorenko@linux.dev>
Subject: [linux-next:master 4485/7423] drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:483: undefined reference to `ptp_clock_index'
Date: Sat, 1 Mar 2025 00:06:11 +0800	[thread overview]
Message-ID: <202502282345.HvKNSdqB-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   c0eb65494e59d9834af7cbad983629e9017b25a1
commit: ce114069a654be6b1597da983a201c72ceca7a85 [4485/7423] net: wangxun: Support to get ts info
config: x86_64-randconfig-121-20250226 (https://download.01.org/0day-ci/archive/20250228/202502282345.HvKNSdqB-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/20250228/202502282345.HvKNSdqB-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/202502282345.HvKNSdqB-lkp@intel.com/

Note: the linux-next/master HEAD c0eb65494e59d9834af7cbad983629e9017b25a1 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   ld: drivers/net/ethernet/wangxun/libwx/wx_lib.o: in function `wx_clean_tx_irq':
   drivers/net/ethernet/wangxun/libwx/wx_lib.c:754: undefined reference to `ptp_schedule_worker'
   ld: drivers/net/ethernet/wangxun/libwx/wx_ethtool.o: in function `wx_get_ts_info':
>> drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:483: undefined reference to `ptp_clock_index'
   ld: drivers/net/ethernet/wangxun/libwx/wx_ptp.o: in function `wx_ptp_create_clock':
   drivers/net/ethernet/wangxun/libwx/wx_ptp.c:251: undefined reference to `ptp_clock_register'
   ld: drivers/net/ethernet/wangxun/libwx/wx_ptp.o: in function `wx_ptp_stop':
   drivers/net/ethernet/wangxun/libwx/wx_ptp.c:536: undefined reference to `ptp_clock_unregister'

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for LIBWX
   Depends on [m]: NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_WANGXUN [=y] && PTP_1588_CLOCK_OPTIONAL [=m]
   Selected by [y]:
   - NGBE [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_WANGXUN [=y] && PCI [=y]


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

   458	
   459	int wx_get_ts_info(struct net_device *dev,
   460			   struct kernel_ethtool_ts_info *info)
   461	{
   462		struct wx *wx = netdev_priv(dev);
   463	
   464		info->rx_filters = BIT(HWTSTAMP_FILTER_NONE) |
   465				   BIT(HWTSTAMP_FILTER_PTP_V1_L4_SYNC) |
   466				   BIT(HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ) |
   467				   BIT(HWTSTAMP_FILTER_PTP_V2_L2_EVENT) |
   468				   BIT(HWTSTAMP_FILTER_PTP_V2_L4_EVENT) |
   469				   BIT(HWTSTAMP_FILTER_PTP_V2_SYNC) |
   470				   BIT(HWTSTAMP_FILTER_PTP_V2_L2_SYNC) |
   471				   BIT(HWTSTAMP_FILTER_PTP_V2_L4_SYNC) |
   472				   BIT(HWTSTAMP_FILTER_PTP_V2_DELAY_REQ) |
   473				   BIT(HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ) |
   474				   BIT(HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ) |
   475				   BIT(HWTSTAMP_FILTER_PTP_V2_EVENT);
   476	
   477		info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |
   478					SOF_TIMESTAMPING_TX_HARDWARE |
   479					SOF_TIMESTAMPING_RX_HARDWARE |
   480					SOF_TIMESTAMPING_RAW_HARDWARE;
   481	
   482		if (wx->ptp_clock)
 > 483			info->phc_index = ptp_clock_index(wx->ptp_clock);
   484		else
   485			info->phc_index = -1;
   486	
   487		info->tx_types = BIT(HWTSTAMP_TX_OFF) |
   488				 BIT(HWTSTAMP_TX_ON);
   489	
   490		return 0;
   491	}
   492	EXPORT_SYMBOL(wx_get_ts_info);
   493	

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

                 reply	other threads:[~2025-02-28 16:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202502282345.HvKNSdqB-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jiawenwu@trustnetic.com \
    --cc=kuba@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=vadim.fedorenko@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.