Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next] ipv4: remove obsolete EXPORT_SYMBOL() and EXPORT_SYMBOL_GPL()
@ 2026-06-04 17:34 Eric Dumazet
  2026-06-05  1:15 ` David Ahern
  2026-06-06  1:00 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Dumazet @ 2026-06-04 17:34 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, David Ahern, Ido Schimmel, netdev, eric.dumazet,
	Eric Dumazet

These symbols no longer need to be exported, they are only used from
vmlinux:

- inet_send_prepare
- inet_splice_eof
- inet_sk_rebuild_header
- inet_current_timestamp
- snmp_fold_field
- snmp_get_cpu_field64
- snmp_fold_field64
- fib_nh_common_release
- fib_nh_common_init
- fib_nexthop_info
- fib_add_nexthop
- ip_build_and_send_pkt
- ipv4_sk_update_pmtu
- ipv4_sk_redirect
- rt_dst_clone

Signed-off-by: Eric Dumazet <edumazet@google.com>
---
 net/ipv4/af_inet.c       | 7 -------
 net/ipv4/fib_semantics.c | 4 ----
 net/ipv4/ip_output.c     | 1 -
 net/ipv4/route.c         | 3 ---
 4 files changed, 15 deletions(-)

diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index cbac072633bb57fd68131904fa3eff24265696d9..32d006c1a8eedad9ede42445f6a93d47bca7fc52 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -852,7 +852,6 @@ int inet_send_prepare(struct sock *sk)
 
 	return 0;
 }
-EXPORT_SYMBOL_GPL(inet_send_prepare);
 
 int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
 {
@@ -881,7 +880,6 @@ void inet_splice_eof(struct socket *sock)
 	if (prot->splice_eof)
 		prot->splice_eof(sock);
 }
-EXPORT_SYMBOL_GPL(inet_splice_eof);
 
 int inet_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,
 		 int flags)
@@ -1349,7 +1347,6 @@ int inet_sk_rebuild_header(struct sock *sk)
 
 	return err;
 }
-EXPORT_SYMBOL(inet_sk_rebuild_header);
 
 void inet_sk_set_state(struct sock *sk, int state)
 {
@@ -1579,7 +1576,6 @@ __be32 inet_current_timestamp(void)
 	/* Convert to network byte order. */
 	return htonl(msecs);
 }
-EXPORT_SYMBOL(inet_current_timestamp);
 
 int inet_recv_error(struct sock *sk, struct msghdr *msg, int len)
 {
@@ -1665,7 +1661,6 @@ unsigned long snmp_fold_field(void __percpu *mib, int offt)
 		res += snmp_get_cpu_field(mib, i, offt);
 	return res;
 }
-EXPORT_SYMBOL_GPL(snmp_fold_field);
 
 #if BITS_PER_LONG==32
 
@@ -1686,7 +1681,6 @@ u64 snmp_get_cpu_field64(void __percpu *mib, int cpu, int offt,
 
 	return v;
 }
-EXPORT_SYMBOL_GPL(snmp_get_cpu_field64);
 
 u64 snmp_fold_field64(void __percpu *mib, int offt, size_t syncp_offset)
 {
@@ -1698,7 +1692,6 @@ u64 snmp_fold_field64(void __percpu *mib, int offt, size_t syncp_offset)
 	}
 	return res;
 }
-EXPORT_SYMBOL_GPL(snmp_fold_field64);
 #endif
 
 #ifdef CONFIG_IP_MULTICAST
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
index 3e8fadc28798786d76cb476c88ae1d4bd5d5f427..4f3c0740dde913fcc7c747b8ffae68d3ca4a9f69 100644
--- a/net/ipv4/fib_semantics.c
+++ b/net/ipv4/fib_semantics.c
@@ -207,7 +207,6 @@ void fib_nh_common_release(struct fib_nh_common *nhc)
 	rt_fibinfo_free(&nhc->nhc_rth_input);
 	free_nh_exceptions(nhc);
 }
-EXPORT_SYMBOL_GPL(fib_nh_common_release);
 
 void fib_nh_release(struct net *net, struct fib_nh *fib_nh)
 {
@@ -639,7 +638,6 @@ int fib_nh_common_init(struct net *net, struct fib_nh_common *nhc,
 	nhc->nhc_pcpu_rth_output = NULL;
 	return err;
 }
-EXPORT_SYMBOL_GPL(fib_nh_common_init);
 
 int fib_nh_init(struct net *net, struct fib_nh *nh,
 		struct fib_config *cfg, int nh_weight,
@@ -1642,7 +1640,6 @@ int fib_nexthop_info(struct sk_buff *skb, const struct fib_nh_common *nhc,
 nla_put_failure:
 	return -EMSGSIZE;
 }
-EXPORT_SYMBOL_GPL(fib_nexthop_info);
 
 #if IS_ENABLED(CONFIG_IP_ROUTE_MULTIPATH) || IS_ENABLED(CONFIG_IPV6)
 int fib_add_nexthop(struct sk_buff *skb, const struct fib_nh_common *nhc,
@@ -1675,7 +1672,6 @@ int fib_add_nexthop(struct sk_buff *skb, const struct fib_nh_common *nhc,
 nla_put_failure:
 	return -EMSGSIZE;
 }
-EXPORT_SYMBOL_GPL(fib_add_nexthop);
 #endif
 
 #ifdef CONFIG_IP_ROUTE_MULTIPATH
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 5bcd73cbdb41c0d402c025cc449a9f84fd2833e0..3b4e9b8af044f19d76802abf519228ca6496e600 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -195,7 +195,6 @@ int ip_build_and_send_pkt(struct sk_buff *skb, const struct sock *sk,
 	/* Send it out. */
 	return ip_local_out(net, skb->sk, skb);
 }
-EXPORT_SYMBOL_GPL(ip_build_and_send_pkt);
 
 static int ip_finish_output2(struct net *net, struct sock *sk, struct sk_buff *skb)
 {
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 3d62d45d84bda986db8b3592c0c7f5c81da3fb7e..3f3de5164d6e5854cae3ebe6fcecbac10fb63418 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1171,7 +1171,6 @@ void ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu)
 	bh_unlock_sock(sk);
 	dst_release(odst);
 }
-EXPORT_SYMBOL_GPL(ipv4_sk_update_pmtu);
 
 void ipv4_redirect(struct sk_buff *skb, struct net *net,
 		   int oif, u8 protocol)
@@ -1203,7 +1202,6 @@ void ipv4_sk_redirect(struct sk_buff *skb, struct sock *sk)
 		ip_rt_put(rt);
 	}
 }
-EXPORT_SYMBOL_GPL(ipv4_sk_redirect);
 
 INDIRECT_CALLABLE_SCOPE struct dst_entry *ipv4_dst_check(struct dst_entry *dst,
 							 u32 cookie)
@@ -1701,7 +1699,6 @@ struct rtable *rt_dst_clone(struct net_device *dev, struct rtable *rt)
 	}
 	return new_rt;
 }
-EXPORT_SYMBOL(rt_dst_clone);
 
 /* called in rcu_read_lock() section */
 enum skb_drop_reason
-- 
2.54.0.1032.g2f8565e1d1-goog


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] ipv4: remove obsolete EXPORT_SYMBOL() and EXPORT_SYMBOL_GPL()
  2026-06-04 17:34 [PATCH net-next] ipv4: remove obsolete EXPORT_SYMBOL() and EXPORT_SYMBOL_GPL() Eric Dumazet
@ 2026-06-05  1:15 ` David Ahern
  2026-06-06  1:00 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: David Ahern @ 2026-06-05  1:15 UTC (permalink / raw)
  To: Eric Dumazet, David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, Ido Schimmel, netdev, eric.dumazet

On 6/4/26 11:34 AM, Eric Dumazet wrote:
> These symbols no longer need to be exported, they are only used from
> vmlinux:
> 
> - inet_send_prepare
> - inet_splice_eof
> - inet_sk_rebuild_header
> - inet_current_timestamp
> - snmp_fold_field
> - snmp_get_cpu_field64
> - snmp_fold_field64
> - fib_nh_common_release
> - fib_nh_common_init
> - fib_nexthop_info
> - fib_add_nexthop
> - ip_build_and_send_pkt
> - ipv4_sk_update_pmtu
> - ipv4_sk_redirect
> - rt_dst_clone
> 
> Signed-off-by: Eric Dumazet <edumazet@google.com>
> ---
>  net/ipv4/af_inet.c       | 7 -------
>  net/ipv4/fib_semantics.c | 4 ----
>  net/ipv4/ip_output.c     | 1 -
>  net/ipv4/route.c         | 3 ---
>  4 files changed, 15 deletions(-)
> 

Reviewed-by: David Ahern <dsahern@kernel.org>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] ipv4: remove obsolete EXPORT_SYMBOL() and EXPORT_SYMBOL_GPL()
  2026-06-04 17:34 [PATCH net-next] ipv4: remove obsolete EXPORT_SYMBOL() and EXPORT_SYMBOL_GPL() Eric Dumazet
  2026-06-05  1:15 ` David Ahern
@ 2026-06-06  1:00 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-06-06  1:00 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: davem, kuba, pabeni, horms, dsahern, idosch, netdev, eric.dumazet

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu,  4 Jun 2026 17:34:13 +0000 you wrote:
> These symbols no longer need to be exported, they are only used from
> vmlinux:
> 
> - inet_send_prepare
> - inet_splice_eof
> - inet_sk_rebuild_header
> - inet_current_timestamp
> - snmp_fold_field
> - snmp_get_cpu_field64
> - snmp_fold_field64
> - fib_nh_common_release
> - fib_nh_common_init
> - fib_nexthop_info
> - fib_add_nexthop
> - ip_build_and_send_pkt
> - ipv4_sk_update_pmtu
> - ipv4_sk_redirect
> - rt_dst_clone
> 
> [...]

Here is the summary with links:
  - [net-next] ipv4: remove obsolete EXPORT_SYMBOL() and EXPORT_SYMBOL_GPL()
    https://git.kernel.org/netdev/net-next/c/b056e7326724

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-06  1:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-04 17:34 [PATCH net-next] ipv4: remove obsolete EXPORT_SYMBOL() and EXPORT_SYMBOL_GPL() Eric Dumazet
2026-06-05  1:15 ` David Ahern
2026-06-06  1:00 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox