summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2020-05-29 00:01:52 +0200
committerDavid S. Miller <davem@davemloft.net>2020-05-30 02:31:10 +0200
commitbc183dec08f9cb177cf5206a010b7a9e7b22e567 (patch)
tree046ef60111d565119011a9181b7c493fc0bf4fc8 /net/ipv4/tcp_input.c
parentnet: ethtool: cabletest: Make ethnl_act_cable_test_tdr_cfg static (diff)
downloadlinux-bc183dec08f9cb177cf5206a010b7a9e7b22e567.tar.xz
linux-bc183dec08f9cb177cf5206a010b7a9e7b22e567.zip
tcp: tcp_init_buffer_space can be static
As of commit 98fa6271cfcb ("tcp: refactor setting the initial congestion window") this is called only from tcp_input.c, so it can be static. Signed-off-by: Florian Westphal <fw@strlen.de> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index ad90102f5dfb..83330a6cb242 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -437,7 +437,7 @@ static void tcp_grow_window(struct sock *sk, const struct sk_buff *skb)
/* 3. Try to fixup all. It is made immediately after connection enters
* established state.
*/
-void tcp_init_buffer_space(struct sock *sk)
+static void tcp_init_buffer_space(struct sock *sk)
{
int tcp_app_win = sock_net(sk)->ipv4.sysctl_tcp_app_win;
struct tcp_sock *tp = tcp_sk(sk);