]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commit
sctp: Fix compiler warning when CONFIG_DEBUG_SECTION_MISMATCH=y
authorChristoph Paasch <christoph.paasch@uclouvain.be>
Thu, 6 Dec 2012 03:03:12 +0000 (03:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Dec 2012 17:57:13 +0000 (12:57 -0500)
commitf5f417c063b83ca3de493e79e7d8c9144d9e7368
treedfbc290d4eb3910e113d12c865791b22bd9a141b
parentfd3065b25b69ce345073bbd294a73343a608fd8b
sctp: Fix compiler warning when CONFIG_DEBUG_SECTION_MISMATCH=y

WARNING: net/sctp/sctp.o(.text+0x72f1): Section mismatch in reference
from the function sctp_net_init() to the function
.init.text:sctp_proc_init()
The function sctp_net_init() references
the function __init sctp_proc_init().
This is often because sctp_net_init lacks a __init
annotation or the annotation of sctp_proc_init is wrong.

And put __net_init after 'int' for sctp_proc_init - as it is done
everywhere else in the sctp-stack.

Signed-off-by: Christoph Paasch <christoph.paasch@uclouvain.be>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/protocol.c