Skip to content

Commit a86eb2a

Browse files
arndbkuba-moo
authored andcommitted
net: wangxun: fix LIBWX dependencies again
Two more drivers got added that use LIBWX and cause a build warning 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]: - NGBEVF [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_WANGXUN [=y] && PCI_MSI [=y] Selected by [m]: - NGBE [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_WANGXUN [=y] && PCI [=y] && PTP_1588_CLOCK_OPTIONAL [=m] ld: drivers/net/ethernet/wangxun/libwx/wx_lib.o: in function `wx_clean_tx_irq': wx_lib.c:(.text+0x5a68): undefined reference to `ptp_schedule_worker' ld: drivers/net/ethernet/wangxun/libwx/wx_ethtool.o: in function `wx_nway_reset': wx_ethtool.c:(.text+0x880): undefined reference to `phylink_ethtool_nway_reset' Add the same dependency on PTP_1588_CLOCK_OPTIONAL to the two driver using this library module, following the pattern from commit 8fa19c2 ("net: wangxun: fix LIBWX dependencies"). Fixes: 377d180 ("net: wangxun: add txgbevf build") Fixes: a0008a3 ("net: wangxun: add ngbevf build") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Simon Horman <[email protected]> Tested-by: Simon Horman <[email protected]> # build-tested Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 2677010 commit a86eb2a

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/wangxun

1 file changed

+2
-0
lines changed

drivers/net/ethernet/wangxun/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ config TXGBEVF
6868
tristate "Wangxun(R) 10/25/40G Virtual Function Ethernet support"
6969
depends on PCI
7070
depends on PCI_MSI
71+
depends on PTP_1588_CLOCK_OPTIONAL
7172
select LIBWX
7273
select PHYLINK
7374
help
@@ -85,6 +86,7 @@ config TXGBEVF
8586
config NGBEVF
8687
tristate "Wangxun(R) GbE Virtual Function Ethernet support"
8788
depends on PCI_MSI
89+
depends on PTP_1588_CLOCK_OPTIONAL
8890
select LIBWX
8991
help
9092
This driver supports virtual functions for WX1860, WX1860AL.

0 commit comments

Comments
 (0)