tipc: not enable tipc when ipv6 works as a module
authorXin Long <lucien.xin@gmail.com>
Sun, 16 Aug 2020 09:32:03 +0000 (17:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2020 04:04:55 +0000 (21:04 -0700)
commitc530189905efe91b6a464db4ec1b56b4c069609f
treeeb3332283a7a79065a7ae6bdf6ad11ba1fc18e97
parent47733f9daf4fe4f7e0eb9e273f21ad3a19130487
tipc: not enable tipc when ipv6 works as a module

When using ipv6_dev_find() in one module, it requires ipv6 not to
work as a module. Otherwise, this error occurs in build:

  undefined reference to `ipv6_dev_find'.

So fix it by adding "depends on IPV6 || IPV6=n" to tipc/Kconfig,
as it does in sctp/Kconfig.

Fixes: 5a6f6f579178 ("tipc: set ub->ifindex for local ipv6 address")
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/Kconfig