summaryrefslogtreecommitdiff
path: root/net/sctp/stream_sched_rr.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-11-28 11:00:14 -0500
committerDavid S. Miller <davem@davemloft.net>2017-11-28 11:00:14 -0500
commita51a40b7abb619c38fe60d896a6916be280171ea (patch)
tree39fb89151c14acafe4811c2b31116245f12e21c6 /net/sctp/stream_sched_rr.c
parentf95d5bf03b5ec0d7ea8e552e15abe70c646249b5 (diff)
parent1ba896f6f52bfafac6dec4ca583cdd9a073858e8 (diff)
Merge branch 'sctp-fix-sparse-errors'
Xin Long says: ==================== sctp: fix some other sparse errors After the last fixes for sparse errors, there are still three sparse errors in sctp codes, two of them are type cast, and the other one is using extern. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/stream_sched_rr.c')
-rw-r--r--net/sctp/stream_sched_rr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/sctp/stream_sched_rr.c b/net/sctp/stream_sched_rr.c
index 7612a438c5b9..1155692448f1 100644
--- a/net/sctp/stream_sched_rr.c
+++ b/net/sctp/stream_sched_rr.c
@@ -187,7 +187,7 @@ static void sctp_sched_rr_unsched_all(struct sctp_stream *stream)
sctp_sched_rr_unsched(stream, soute);
}
-struct sctp_sched_ops sctp_sched_rr = {
+static struct sctp_sched_ops sctp_sched_rr = {
.set = sctp_sched_rr_set,
.get = sctp_sched_rr_get,
.init = sctp_sched_rr_init,
@@ -199,3 +199,8 @@ struct sctp_sched_ops sctp_sched_rr = {
.sched_all = sctp_sched_rr_sched_all,
.unsched_all = sctp_sched_rr_unsched_all,
};
+
+void sctp_sched_ops_rr_init(void)
+{
+ sctp_sched_ops_register(SCTP_SS_RR, &sctp_sched_rr);
+}