]> git.baikalelectronics.ru Git - kernel.git/commit
rds: fix building with IPV6=m
authorArnd Bergmann <arnd@arndb.de>
Tue, 14 Aug 2018 09:07:42 +0000 (11:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Aug 2018 17:06:37 +0000 (10:06 -0700)
commit3802d810a856eab3255ca0510e6e0f1b5a1a6de4
treeab8f289d9812a39c69ed05c815de3a7134ae056c
parente943fc8f5edc2d31de17de972868ae630fa2beef
rds: fix building with IPV6=m

When CONFIG_RDS_TCP is built-in and CONFIG_IPV6 is a loadable
module, we get a link error agains the modular ipv6_chk_addr()
function:

net/rds/tcp.o: In function `rds_tcp_laddr_check':
tcp.c:(.text+0x3b2): undefined reference to `ipv6_chk_addr'

This adds back a dependency that forces RDS_TCP to also be
a loadable module when IPV6 is one.

Fixes: 1a49b426c7e1 ("rds: Remove IPv6 dependency")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/Kconfig