From: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
To: Eric Dumazet <edumazet@google.com>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: <netdev@vger.kernel.org>, Simon Horman <horms@kernel.org>,
"Willem de Bruijn" <willemb@google.com>,
Sabrina Dubroca <sd@queasysnail.net>,
"Neal Cardwell" <ncardwell@google.com>,
Kuniyuki Iwashima <kuniyu@amazon.com>, <eric.dumazet@gmail.com>
Subject: Re: [PATCH v2 net-next 4/4] udp: use EXPORT_IPV6_MOD[_GPL]()
Date: Thu, 13 Feb 2025 08:28:11 +0100 [thread overview]
Message-ID: <3135409e-d92a-41d0-a865-e7db0c6e7ce4@intel.com> (raw)
In-Reply-To: <20250212132418.1524422-5-edumazet@google.com>
On 2/12/2025 2:24 PM, Eric Dumazet wrote:
> Use EXPORT_IPV6_MOD[_GPL]() for symbols that don't need
> to be exported unless CONFIG_IPV6=m
>
> udp_table is no longer used from any modules, and does not
> need to be exported anyway.
>
> Signed-off-by: Eric Dumazet <edumazet@google.com>
> ---
> net/ipv4/udp.c | 63 +++++++++++++++++++++++++-------------------------
> 1 file changed, 31 insertions(+), 32 deletions(-)
>
> diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
> index a9bb9ce5438eaa9f9ceede1e4ac080dc6ab74588..3485989cd4bdec96e8cb7ecb28b68a25c3444a96 100644
> --- a/net/ipv4/udp.c
> +++ b/net/ipv4/udp.c
> @@ -121,13 +121,12 @@
> #endif
>
> struct udp_table udp_table __read_mostly;
> -EXPORT_SYMBOL(udp_table);
[...]
> -EXPORT_SYMBOL(udp_seq_stop);
> +EXPORT_IPV6_MOD(udp_seq_stop);
>
> /* ------------------------------------------------------------------------ */
> static void udp4_format_sock(struct sock *sp, struct seq_file *f,
> @@ -3616,7 +3615,7 @@ const struct seq_operations udp_seq_ops = {
> .stop = udp_seq_stop,
> .show = udp4_seq_show,
> };
> -EXPORT_SYMBOL(udp_seq_ops);
> +EXPORT_IPV6_MOD(udp_seq_ops);
>
> static struct udp_seq_afinfo udp4_seq_afinfo = {
> .family = AF_INET,
Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
next prev parent reply other threads:[~2025-02-13 7:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-12 13:24 [PATCH v2 net-next 0/4] net: add EXPORT_IPV6_MOD() Eric Dumazet
2025-02-12 13:24 ` [PATCH v2 net-next 1/4] net: introduce EXPORT_IPV6_MOD() and EXPORT_IPV6_MOD_GPL() Eric Dumazet
2025-02-13 3:51 ` Kuniyuki Iwashima
2025-02-13 7:26 ` Mateusz Polchlopek
2025-02-12 13:24 ` [PATCH v2 net-next 2/4] inetpeer: use EXPORT_IPV6_MOD[_GPL]() Eric Dumazet
2025-02-13 3:53 ` Kuniyuki Iwashima
2025-02-13 7:26 ` Mateusz Polchlopek
2025-02-12 13:24 ` [PATCH v2 net-next 3/4] tcp: " Eric Dumazet
2025-02-13 4:20 ` Kuniyuki Iwashima
2025-02-13 7:27 ` Mateusz Polchlopek
2025-02-12 13:24 ` [PATCH v2 net-next 4/4] udp: " Eric Dumazet
2025-02-12 17:11 ` Willem de Bruijn
2025-02-13 7:28 ` Mateusz Polchlopek [this message]
2025-02-14 21:30 ` [PATCH v2 net-next 0/4] net: add EXPORT_IPV6_MOD() patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3135409e-d92a-41d0-a865-e7db0c6e7ce4@intel.com \
--to=mateusz.polchlopek@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eric.dumazet@gmail.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@amazon.com \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sd@queasysnail.net \
--cc=willemb@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).