diff options
author | Eric Dumazet <edumazet@google.com> | 2015-02-26 22:08:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-28 16:56:51 -0500 |
commit | 74abc20cedf6f95a0065665c55180ef2d4828ba5 (patch) | |
tree | 41ee897ae926f53cd1ae0bc03c80e2de4857bacb | |
parent | 59995370dbca7636c105ddadc0447fab86ad3887 (diff) |
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>
-rw-r--r-- | net/ipv4/tcp_fastopen.c | 1 | ||||
-rw-r--r-- | net/ipv4/tcp_offload.c | 4 | ||||
-rw-r--r-- | net/ipv6/tcpv6_offload.c | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/net/ipv4/tcp_fastopen.c b/net/ipv4/tcp_fastopen.c index ea82fd492c1b..fe77417fc137 100644 --- a/net/ipv4/tcp_fastopen.c +++ b/net/ipv4/tcp_fastopen.c | |||
@@ -221,7 +221,6 @@ static bool tcp_fastopen_create_child(struct sock *sk, | |||
221 | WARN_ON(req->sk == NULL); | 221 | WARN_ON(req->sk == NULL); |
222 | return true; | 222 | return true; |
223 | } | 223 | } |
224 | EXPORT_SYMBOL(tcp_fastopen_create_child); | ||
225 | 224 | ||
226 | static bool tcp_fastopen_queue_check(struct sock *sk) | 225 | static bool tcp_fastopen_queue_check(struct sock *sk) |
227 | { | 226 | { |
diff --git a/net/ipv4/tcp_offload.c b/net/ipv4/tcp_offload.c index 9d7930ba8e0f..3f7c2fca5431 100644 --- a/net/ipv4/tcp_offload.c +++ b/net/ipv4/tcp_offload.c | |||
@@ -29,8 +29,8 @@ static void tcp_gso_tstamp(struct sk_buff *skb, unsigned int ts_seq, | |||
29 | } | 29 | } |
30 | } | 30 | } |
31 | 31 | ||
32 | struct sk_buff *tcp4_gso_segment(struct sk_buff *skb, | 32 | static struct sk_buff *tcp4_gso_segment(struct sk_buff *skb, |
33 | netdev_features_t features) | 33 | netdev_features_t features) |
34 | { | 34 | { |
35 | if (!pskb_may_pull(skb, sizeof(struct tcphdr))) | 35 | if (!pskb_may_pull(skb, sizeof(struct tcphdr))) |
36 | return ERR_PTR(-EINVAL); | 36 | return ERR_PTR(-EINVAL); |
diff --git a/net/ipv6/tcpv6_offload.c b/net/ipv6/tcpv6_offload.c index c1ab77105b4c..d883c9204c01 100644 --- a/net/ipv6/tcpv6_offload.c +++ b/net/ipv6/tcpv6_offload.c | |||
@@ -41,8 +41,8 @@ static int tcp6_gro_complete(struct sk_buff *skb, int thoff) | |||
41 | return tcp_gro_complete(skb); | 41 | return tcp_gro_complete(skb); |
42 | } | 42 | } |
43 | 43 | ||
44 | struct sk_buff *tcp6_gso_segment(struct sk_buff *skb, | 44 | static struct sk_buff *tcp6_gso_segment(struct sk_buff *skb, |
45 | netdev_features_t features) | 45 | netdev_features_t features) |
46 | { | 46 | { |
47 | struct tcphdr *th; | 47 | struct tcphdr *th; |
48 | 48 | ||