]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sctp: declare struct sctp_stream before using it
authorXin Long <lucien.xin@gmail.com>
Mon, 20 Mar 2017 09:46:27 +0000 (17:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 17:57:52 +0000 (10:57 -0700)
sctp_stream_free uses struct sctp_stream as a param, but struct sctp_stream
is defined after it's declaration.

This patch is to declare struct sctp_stream before sctp_stream_free.

Fixes: a83863174a61 ("sctp: prepare asoc stream for stream reconf")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h

index 4f645198e9bd7b9f141dfa820d432b4b3d4916bd..592decebac752ffca16fddbc75cbf14f9283d125 100644 (file)
@@ -83,6 +83,7 @@ struct sctp_bind_addr;
 struct sctp_ulpq;
 struct sctp_ep_common;
 struct crypto_shash;
+struct sctp_stream;
 
 
 #include <net/sctp/tsnmap.h>