Re: [PATCH net-next] net: stmmac: Fix build error without CONFIG_INET
From: David Miller
Date: Wed May 29 2019 - 17:22:50 EST
From: YueHaibing <yuehaibing@xxxxxxxxxx>
Date: Tue, 28 May 2019 17:10:40 +0800
> 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@xxxxxxxxxx>
> Fixes: 091810dbded9 ("net: stmmac: Introduce selftests support")
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
Applied.