From: Eric Dumazet Date: Thu, 6 Feb 2025 09:34:36 +0000 (+0000) Subject: tcp: do not export tcp_parse_mss_option() and tcp_mtup_init() X-Git-Tag: v6.15-rc1~160^2~375 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d876ec8d3ed3e2f9d29ed866248a294d71e40d86;p=thirdparty%2Fkernel%2Flinux.git tcp: do not export tcp_parse_mss_option() and tcp_mtup_init() These two functions are not called from modules. Signed-off-by: Eric Dumazet Reviewed-by: Simon Horman Reviewed-by: Joe Damato Reviewed-by: Kuniyuki Iwashima Link: https://patch.msgid.link/20250206093436.2609008-1-edumazet@google.com Signed-off-by: Jakub Kicinski --- diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index eb82e01da9110..61da8ffc2f86f 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -4174,7 +4174,6 @@ u16 tcp_parse_mss_option(const struct tcphdr *th, u16 user_mss) } return mss; } -EXPORT_SYMBOL_GPL(tcp_parse_mss_option); /* Look for tcp options. Normally only called on SYN and SYNACK packets. * But, this can also be called on packets in the established flow when diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index bc95d2a5924fd..ef9f6172680f5 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -1813,7 +1813,6 @@ void tcp_mtup_init(struct sock *sk) if (icsk->icsk_mtup.enabled) icsk->icsk_mtup.probe_timestamp = tcp_jiffies32; } -EXPORT_SYMBOL(tcp_mtup_init); /* This function synchronize snd mss to current pmtu/exthdr set.