Re: [PATCH net] sctp: declare struct sctp_stream before using it

2017-03-22 Thread David Miller
From: Xin Long Date: Mon, 20 Mar 2017 17:46:27 +0800 > 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 fo

Re: [PATCH net] sctp: declare struct sctp_stream before using it

2017-03-21 Thread Neil Horman
On Mon, Mar 20, 2017 at 10:33:57PM +0800, Xin Long wrote: > On Mon, Mar 20, 2017 at 9:29 PM, Neil Horman wrote: > > On Mon, Mar 20, 2017 at 05:46:27PM +0800, Xin Long wrote: > >> sctp_stream_free uses struct sctp_stream as a param, but struct sctp_stream > >> is defined after it's declaration. > >

Re: [PATCH net] sctp: declare struct sctp_stream before using it

2017-03-20 Thread Xin Long
On Mon, Mar 20, 2017 at 9:29 PM, Neil Horman wrote: > On Mon, Mar 20, 2017 at 05:46:27PM +0800, Xin Long wrote: >> 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_

Re: [PATCH net] sctp: declare struct sctp_stream before using it

2017-03-20 Thread Neil Horman
On Mon, Mar 20, 2017 at 05:46:27PM +0800, Xin Long wrote: > 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

[PATCH net] sctp: declare struct sctp_stream before using it

2017-03-20 Thread Xin Long
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 --- include/net/sctp/st