drivers/net: netdevsim depends on INET
authorHongbo Yao <yaohongbo@huawei.com>
Thu, 16 Jan 2020 13:14:04 +0000 (21:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jan 2020 10:27:49 +0000 (11:27 +0100)
If CONFIG_INET is not set and CONFIG_NETDEVSIM=y.
Building drivers/net/netdevsim/fib.o will get the following error:

drivers/net/netdevsim/fib.o: In function `nsim_fib4_rt_hw_flags_set':
fib.c:(.text+0x12b): undefined reference to `fib_alias_hw_flags_set'
drivers/net/netdevsim/fib.o: In function `nsim_fib4_rt_destroy':
fib.c:(.text+0xb11): undefined reference to `free_fib_info'

Correct the Kconfig for netdevsim.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 48bb9eb47b270 ("netdevsim: fib: Add dummy implementation for FIB offload")
Signed-off-by: Hongbo Yao <yaohongbo@huawei.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/Kconfig

index e65ed4d0a7adc78b42c29ffa9281903b255205e4..dee79588d2b1f5f06fc84c12cd7c109f0ad0c1ff 100644 (file)
@@ -549,6 +549,7 @@ source "drivers/net/hyperv/Kconfig"
 config NETDEVSIM
        tristate "Simulated networking device"
        depends on DEBUG_FS
+       depends on INET
        depends on IPV6 || IPV6=n
        select NET_DEVLINK
        help