Commit a3e2f6ad authored by YueHaibing's avatar YueHaibing Committed by David S. Miller

net: stmmac: Fix build error without CONFIG_INET

Fix gcc build error while CONFIG_INET is not set

drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.o: In function `__stmmac_test_loopback':
stmmac_selftests.c:(.text+0x8ec): undefined reference to `ip_send_check'
stmmac_selftests.c:(.text+0xacc): undefined reference to `udp4_hwcsum'

Add CONFIG_INET dependency to fix this.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Fixes: 091810db ("net: stmmac: Introduce selftests support")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 279758f8
...@@ -15,6 +15,7 @@ if STMMAC_ETH ...@@ -15,6 +15,7 @@ if STMMAC_ETH
config STMMAC_SELFTESTS config STMMAC_SELFTESTS
bool "Support for STMMAC Selftests" bool "Support for STMMAC Selftests"
depends on INET
depends on STMMAC_ETH depends on STMMAC_ETH
default n default n
---help--- ---help---
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment