diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-10-16 09:33:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-16 16:24:25 -0400 |
commit | d85969f1a981b9cd57f5037ebcb9c6d385c0bc70 (patch) | |
tree | 6f7cb2b7c66c59e876ff60368b833003da00a41b | |
parent | 00fb3a7c7c14dd28feb0372a8458267e058add66 (diff) |
tcp: cdg: make struct tcp_cdg static
The structure tcp_cdg is local to the source and
does not need to be in global scope, so make it static.
Cleans up sparse warning:
symbol 'tcp_cdg' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/tcp_cdg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_cdg.c b/net/ipv4/tcp_cdg.c index 66ac69f7bd19..06fbe102a425 100644 --- a/net/ipv4/tcp_cdg.c +++ b/net/ipv4/tcp_cdg.c | |||
@@ -389,7 +389,7 @@ static void tcp_cdg_release(struct sock *sk) | |||
389 | kfree(ca->gradients); | 389 | kfree(ca->gradients); |
390 | } | 390 | } |
391 | 391 | ||
392 | struct tcp_congestion_ops tcp_cdg __read_mostly = { | 392 | static struct tcp_congestion_ops tcp_cdg __read_mostly = { |
393 | .cong_avoid = tcp_cdg_cong_avoid, | 393 | .cong_avoid = tcp_cdg_cong_avoid, |
394 | .cwnd_event = tcp_cdg_cwnd_event, | 394 | .cwnd_event = tcp_cdg_cwnd_event, |
395 | .pkts_acked = tcp_cdg_acked, | 395 | .pkts_acked = tcp_cdg_acked, |