net: stmmac: Fix build error without CONFIG_INET
authorYueHaibing <yuehaibing@huawei.com>
Tue, 28 May 2019 09:10:40 +0000 (17:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 May 2019 21:18:24 +0000 (14:18 -0700)
commita3e2f6ad8961f78bf89e9caf3ff82cf5bc306511
treebeedbc0ceb3f2443f17018076d41c97e94a8e812
parent279758f8001f0014b15656a4ef130a20852f6df6
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>
drivers/net/ethernet/stmicro/stmmac/Kconfig