From: Xin Long Date: Sun, 26 Nov 2017 12:16:06 +0000 (+0800) Subject: sctp: force SCTP_ERROR_INV_STRM with __u32 when calling sctp_chunk_fail X-Git-Tag: v5.15~9891^2~17^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08f46070dde2a835a7a5bfd4c70372c27bff5d88;p=platform%2Fkernel%2Flinux-starfive.git sctp: force SCTP_ERROR_INV_STRM with __u32 when calling sctp_chunk_fail This patch is to force SCTP_ERROR_INV_STRM with right type to fit in sctp_chunk_fail to avoid the sparse error. Signed-off-by: Xin Long Acked-by: Marcelo Ricardo Leitner Signed-off-by: David S. Miller --- diff --git a/net/sctp/stream.c b/net/sctp/stream.c index a20145b..76ea66b 100644 --- a/net/sctp/stream.c +++ b/net/sctp/stream.c @@ -64,7 +64,7 @@ static void sctp_stream_outq_migrate(struct sctp_stream *stream, */ /* Mark as failed send. */ - sctp_chunk_fail(ch, SCTP_ERROR_INV_STRM); + sctp_chunk_fail(ch, (__force __u32)SCTP_ERROR_INV_STRM); if (asoc->peer.prsctp_capable && SCTP_PR_PRIO_ENABLED(ch->sinfo.sinfo_flags)) asoc->sent_cnt_removable--;