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)
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

index 9dd780215eef4a2e361f61cb8de945388cc1bd9d..be1c4003d67d286955c31d0aa1ffb4fc27981b02 100644 (file)
@@ -6,6 +6,7 @@
 menuconfig TIPC
        tristate "The TIPC Protocol"
        depends on INET
+       depends on IPV6 || IPV6=n
        help
          The Transparent Inter Process Communication (TIPC) protocol is
          specially designed for intra cluster communication. This protocol