]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit79e037a553a768eba9213d306838d4f234891329
treeeb3332283a7a79065a7ae6bdf6ad11ba1fc18e97
parent37bd41352ee5aea47b38e9dc0e8c19ef464f99bf
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: 95306646436b ("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