* [linux-next:master 4485/7423] drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:483: undefined reference to `ptp_clock_index'
@ 2025-02-28 16:06 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-28 16:06 UTC (permalink / raw)
To: Jiawen Wu; +Cc: oe-kbuild-all, Jakub Kicinski, Vadim Fedorenko
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-28 16:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-28 16:06 [linux-next:master 4485/7423] drivers/net/ethernet/wangxun/libwx/wx_ethtool.c:483: undefined reference to `ptp_clock_index' kernel test robot
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.