Re: [PATCH net-next] sctp: fix const parameter violation in sctp_make_sack

2018-04-25 Thread David Miller
From: Marcelo Ricardo Leitner Date: Tue, 24 Apr 2018 18:17:34 -0300 > sctp_make_sack() make changes to the asoc and this cast is just > bypassing the const attribute. As there is no need to have the const > there, just remove it and fix the violation. > > Signed-off-by: Marcelo Ricardo Leitner

Re: [PATCH net-next] sctp: fix const parameter violation in sctp_make_sack

2018-04-25 Thread Neil Horman
On Tue, Apr 24, 2018 at 06:17:34PM -0300, Marcelo Ricardo Leitner wrote: > sctp_make_sack() make changes to the asoc and this cast is just > bypassing the const attribute. As there is no need to have the const > there, just remove it and fix the violation. > > Signed-off-by: Marcelo Ricardo Leitne

Re: [PATCH net-next] sctp: fix const parameter violation in sctp_make_sack

2018-04-25 Thread Xin Long
On Wed, Apr 25, 2018 at 5:17 AM, Marcelo Ricardo Leitner wrote: > sctp_make_sack() make changes to the asoc and this cast is just > bypassing the const attribute. As there is no need to have the const > there, just remove it and fix the violation. > > Signed-off-by: Marcelo Ricardo Leitner > ---

[PATCH net-next] sctp: fix const parameter violation in sctp_make_sack

2018-04-24 Thread Marcelo Ricardo Leitner
sctp_make_sack() make changes to the asoc and this cast is just bypassing the const attribute. As there is no need to have the const there, just remove it and fix the violation. Signed-off-by: Marcelo Ricardo Leitner --- This one can go to net or net-next, but targetting net-next here just to ke