diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-05-28 12:10:40 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-30 00:18:24 +0300 |
commit | a3e2f6ad8961f78bf89e9caf3ff82cf5bc306511 (patch) | |
tree | beedbc0ceb3f2443f17018076d41c97e94a8e812 /drivers/net/ethernet/stmicro/stmmac/Kconfig | |
parent | 279758f8001f0014b15656a4ef130a20852f6df6 (diff) | |
download | linux-a3e2f6ad8961f78bf89e9caf3ff82cf5bc306511.tar.xz |
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: Hulk Robot <hulkci@huawei.com>
Fixes: 091810dbded9 ("net: stmmac: Introduce selftests support")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/Kconfig')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/stmmac/Kconfig index 7791ad5868bf..0b5c8d74c683 100644 --- a/drivers/net/ethernet/stmicro/stmmac/Kconfig +++ b/drivers/net/ethernet/stmicro/stmmac/Kconfig @@ -15,6 +15,7 @@ if STMMAC_ETH config STMMAC_SELFTESTS bool "Support for STMMAC Selftests" + depends on INET depends on STMMAC_ETH default n ---help--- |