Skip to content

Commit 7ec8dc9

Browse files
dhowellsdavem330
authored andcommitted
rxrpc: Fix incorrect conditional on IPV6
The udpv6_encap_enable() function is part of the ipv6 code, and if that is configured as a loadable module and rxrpc is built in then a build failure will occur because the conditional check is wrong: net/rxrpc/local_object.o: In function `rxrpc_lookup_local': local_object.c:(.text+0x2688): undefined reference to `udpv6_encap_enable' Use the correct config symbol (CONFIG_AF_RXRPC_IPV6) in the conditional check rather than CONFIG_IPV6 as that will do the right thing. Fixes: 5271953 ("rxrpc: Use the UDP encap_rcv hook") Reported-by: kbuild-all@01.org Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f547fac commit 7ec8dc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/rxrpc/local_object.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static int rxrpc_open_socket(struct rxrpc_local *local, struct net *net)
139139
udp_sk(usk)->gro_complete = NULL;
140140

141141
udp_encap_enable();
142-
#if IS_ENABLED(CONFIG_IPV6)
142+
#if IS_ENABLED(CONFIG_AF_RXRPC_IPV6)
143143
if (local->srx.transport.family == AF_INET6)
144144
udpv6_encap_enable();
145145
#endif

0 commit comments

Comments
 (0)