[PATCH net-next] inet: remove three EXPORT_SYMBOL()

Subsystems: networking [general], networking [tcp], the rest

STALE158d

3 messages, 3 authors, 2026-02-27 · open the first message on its own page

[PATCH net-next] inet: remove three EXPORT_SYMBOL()

From: Eric Dumazet <edumazet@google.com>
Date: 2026-02-25 13:40:26

inet_rcv_saddr_equal() and inet_csk_listen_stop() are not used
from any modules.

inet_csk_accept() can use EXPORT_IPV6_MOD()

Signed-off-by: Eric Dumazet <edumazet@google.com>
---
 net/ipv4/inet_connection_sock.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c
index 5dfac6ce1110b3276fa8aaa02440c774c6a58176..26e2e792916c3a6fd989bdd2817953ea2be23c6c 100644
--- a/net/ipv4/inet_connection_sock.c
+++ b/net/ipv4/inet_connection_sock.c
@@ -107,7 +107,6 @@ bool inet_rcv_saddr_equal(const struct sock *sk, const struct sock *sk2,
 				    ipv6_only_sock(sk2), match_wildcard,
 				    match_wildcard);
 }
-EXPORT_SYMBOL(inet_rcv_saddr_equal);
 
 bool inet_rcv_saddr_any(const struct sock *sk)
 {
@@ -724,7 +723,7 @@ struct sock *inet_csk_accept(struct sock *sk, struct proto_accept_arg *arg)
 	arg->err = error;
 	return NULL;
 }
-EXPORT_SYMBOL(inet_csk_accept);
+EXPORT_IPV6_MOD(inet_csk_accept);
 
 /*
  * Using different timers for retransmit, delayed acks and probes
@@ -1537,7 +1536,6 @@ void inet_csk_listen_stop(struct sock *sk)
 	}
 	WARN_ON_ONCE(sk->sk_ack_backlog);
 }
-EXPORT_SYMBOL_GPL(inet_csk_listen_stop);
 
 static struct dst_entry *inet_csk_rebuild_route(struct sock *sk, struct flowi *fl)
 {
-- 
2.53.0.414.gf7e9f6c205-goog

Re: [PATCH net-next] inet: remove three EXPORT_SYMBOL()

From: Simon Horman <horms@kernel.org>
Date: 2026-02-26 13:00:45

On Wed, Feb 25, 2026 at 01:40:23PM +0000, Eric Dumazet wrote:
inet_rcv_saddr_equal() and inet_csk_listen_stop() are not used
from any modules.

inet_csk_accept() can use EXPORT_IPV6_MOD()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>

Re: [PATCH net-next] inet: remove three EXPORT_SYMBOL()

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-02-27 03:20:05

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:

On Wed, 25 Feb 2026 13:40:23 +0000 you wrote:
inet_rcv_saddr_equal() and inet_csk_listen_stop() are not used
from any modules.

inet_csk_accept() can use EXPORT_IPV6_MOD()

Signed-off-by: Eric Dumazet <edumazet@google.com>

[...]
Here is the summary with links:
  - [net-next] inet: remove three EXPORT_SYMBOL()
    https://git.kernel.org/netdev/net-next/c/363c5108e4e2

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help