Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tcp: cleanup static functions

tcp_fastopen_create_child() is static and should not be exported.

tcp4_gso_segment() and tcp6_gso_segment() should be static.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Eric Dumazet and committed by
David S. Miller
74abc20c 59995370

+4 -5
-1
net/ipv4/tcp_fastopen.c
··· 221 221 WARN_ON(req->sk == NULL); 222 222 return true; 223 223 } 224 - EXPORT_SYMBOL(tcp_fastopen_create_child); 225 224 226 225 static bool tcp_fastopen_queue_check(struct sock *sk) 227 226 {
+2 -2
net/ipv4/tcp_offload.c
··· 29 29 } 30 30 } 31 31 32 - struct sk_buff *tcp4_gso_segment(struct sk_buff *skb, 33 - netdev_features_t features) 32 + static struct sk_buff *tcp4_gso_segment(struct sk_buff *skb, 33 + netdev_features_t features) 34 34 { 35 35 if (!pskb_may_pull(skb, sizeof(struct tcphdr))) 36 36 return ERR_PTR(-EINVAL);
+2 -2
net/ipv6/tcpv6_offload.c
··· 41 41 return tcp_gro_complete(skb); 42 42 } 43 43 44 - struct sk_buff *tcp6_gso_segment(struct sk_buff *skb, 45 - netdev_features_t features) 44 + static struct sk_buff *tcp6_gso_segment(struct sk_buff *skb, 45 + netdev_features_t features) 46 46 { 47 47 struct tcphdr *th; 48 48