]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
tcp: cdg: make struct tcp_cdg static
authorColin Ian King <colin.king@canonical.com>
Mon, 16 Oct 2017 13:33:21 +0000 (14:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Oct 2017 20:24:25 +0000 (21:24 +0100)
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>
net/ipv4/tcp_cdg.c

index 66ac69f7bd1958908d6f641f2143aa0850171f04..06fbe102a425f28b43294925d8d13af4a13ec776 100644 (file)
@@ -389,7 +389,7 @@ static void tcp_cdg_release(struct sock *sk)
        kfree(ca->gradients);
 }
 
-struct tcp_congestion_ops tcp_cdg __read_mostly = {
+static struct tcp_congestion_ops tcp_cdg __read_mostly = {
        .cong_avoid = tcp_cdg_cong_avoid,
        .cwnd_event = tcp_cdg_cwnd_event,
        .pkts_acked = tcp_cdg_acked,