]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: remove extern from stream sched
authorXin Long <lucien.xin@gmail.com>
Sun, 26 Nov 2017 12:16:08 +0000 (20:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Nov 2017 16:00:13 +0000 (11:00 -0500)
commit1b26ee3c1e8714347fab4f48dc84ad28ef677666
tree39fb89151c14acafe4811c2b31116245f12e21c6
parent3ce372a4bfd0ef8fc3048e7591bda622ff67c64f
sctp: remove extern from stream sched

Now each stream sched ops is defined in different .c file and
added into the global ops in another .c file, it uses extern
to make this work.

However extern is not good coding style to get them in and
even make C=2 reports errors for this.

This patch adds sctp_sched_ops_xxx_init for each stream sched
ops in their .c file, then get them into the global ops by
calling them when initializing sctp module.

Fixes: ab88d8b721bf ("sctp: introduce priority based stream scheduler")
Fixes: 76ffe5c8c3bb ("sctp: introduce round robin stream scheduler")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/sctp.h
include/net/sctp/stream_sched.h
net/sctp/protocol.c
net/sctp/stream_sched.c
net/sctp/stream_sched_prio.c
net/sctp/stream_sched_rr.c