Skip to content

Commit f6f7a26

Browse files
arndbdavem330
authored andcommitted
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: e65d4d9 ("rds: Remove IPv6 dependency") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Santosh Shilimkar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 96d18d8 commit f6f7a26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/rds/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ config RDS_RDMA
1616
config RDS_TCP
1717
tristate "RDS over TCP"
1818
depends on RDS
19+
depends on IPV6 || !IPV6
1920
---help---
2021
Allow RDS to use TCP as a transport.
2122
This transport does not support RDMA operations.

0 commit comments

Comments
 (0)