sctp: make array sctp_sched_ops static
authorColin Ian King <colin.king@canonical.com>
Wed, 11 Oct 2017 10:17:57 +0000 (11:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Oct 2017 03:18:25 +0000 (20:18 -0700)
The array sctp_sched_ops  is local to the source and
does not need to be in global scope, so make it static.

Cleans up sparse warning:
symbol 'sctp_sched_ops' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/stream_sched.c

index 03513a9fa110b5317af4502f98ab37702c1eddb9..0b83ec51e43b07524dd6eb6c4746a755d464a7ef 100644 (file)
@@ -124,7 +124,7 @@ static struct sctp_sched_ops sctp_sched_fcfs = {
 extern struct sctp_sched_ops sctp_sched_prio;
 extern struct sctp_sched_ops sctp_sched_rr;
 
-struct sctp_sched_ops *sctp_sched_ops[] = {
+static struct sctp_sched_ops *sctp_sched_ops[] = {
        &sctp_sched_fcfs,
        &sctp_sched_prio,
        &sctp_sched_rr,