Skip to content

Commit 8fa19c2

Browse files
arndbkuba-moo
authored andcommitted
net: wangxun: fix LIBWX dependencies
Selecting LIBWX requires that its dependencies are met first: 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]: - TXGBE [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_WANGXUN [=y] && PCI [=y] && COMMON_CLK [=y] && I2C_DESIGNWARE_PLATFORM [=y] ld.lld-21: error: undefined symbol: ptp_schedule_worker >>> referenced by wx_ptp.c:747 (/home/arnd/arm-soc/drivers/net/ethernet/wangxun/libwx/wx_ptp.c:747) >>> drivers/net/ethernet/wangxun/libwx/wx_ptp.o:(wx_ptp_reset) in archive vmlinux.a Add the smae dependency on PTP_1588_CLOCK_OPTIONAL to the two driver using this library module. Fixes: 06e7516 ("net: wangxun: Add support for PTP clock") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Vadim Fedorenko <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 13f7e99 commit 8fa19c2

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
@@ -26,6 +26,7 @@ config LIBWX
2626
config NGBE
2727
tristate "Wangxun(R) GbE PCI Express adapters support"
2828
depends on PCI
29+
depends on PTP_1588_CLOCK_OPTIONAL
2930
select LIBWX
3031
select PHYLINK
3132
help
@@ -43,6 +44,7 @@ config TXGBE
4344
depends on PCI
4445
depends on COMMON_CLK
4546
depends on I2C_DESIGNWARE_PLATFORM
47+
depends on PTP_1588_CLOCK_OPTIONAL
4648
select MARVELL_10G_PHY
4749
select REGMAP
4850
select PHYLINK

0 commit comments

Comments
 (0)