]> git.baikalelectronics.ru Git - kernel.git/commit
ipvlan: fix building with modular IPV6
authorArnd Bergmann <arnd@arndb.de>
Mon, 26 Feb 2018 09:41:30 +0000 (10:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 15:37:14 +0000 (10:37 -0500)
commitde2a718b6ff313d0bf556ee5e88a972d9ddba0f6
treeab7597937810758dd1171bc2c67feb694c53f9bf
parentd93bc0bccc6426d489c910ec632e8db052caacdb
ipvlan: fix building with modular IPV6

We no longer depend on IPV6, but that now causes a link error with
CONFIG_IPV6=m and CONFIG_IPVLAN=y:

drivers/net/ipvlan/ipvlan_core.o: In function `ipvlan_queue_xmit':
ipvlan_core.c:(.text+0x1440): undefined reference to `ip6_route_output_flags'
drivers/net/ipvlan/ipvlan_core.o: In function `ipvlan_l3_rcv':
ipvlan_core.c:(.text+0x1818): undefined reference to `ip6_route_input_lookup'

This adds back the dependency on IPV6, with the option of building without
IPV6, but forcing IPVLAN to be a module when IPV6 is a module.

Fixes: c8e3a967a41f ("ipvlan: drop ipv6 dependency")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/Kconfig