]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: fix some type cast warnings introduced since very beginning
authorXin Long <lucien.xin@gmail.com>
Sat, 28 Oct 2017 11:43:57 +0000 (19:43 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Oct 2017 09:03:24 +0000 (18:03 +0900)
commit978aa0474115f3f5848949f2efce4def0766a5cb
treeec5e71a59013f698474666a8d748c4ddc11d68d4
parentf6fc6bc0b8e0bb13a210bd7386ffdcb1a5f30ef1
sctp: fix some type cast warnings introduced since very beginning

These warnings were found by running 'make C=2 M=net/sctp/'.
They are there since very beginning.

Note after this patch, there still one warning left in
sctp_outq_flush():
  sctp_chunk_fail(chunk, SCTP_ERROR_INV_STRM)

Since it has been moved to sctp_stream_outq_migrate on net-next,
to avoid the extra job when merging net-next to net, I will post
the fix for it after the merging is done.

Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sctp.h
include/uapi/linux/sctp.h
net/sctp/ipv6.c
net/sctp/sm_make_chunk.c
net/sctp/sm_sideeffect.c