Skip to content

sctp: a bunch of fixes for some sparse warnings

Xin Long linux-sctp netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4sctp: fix some type cast warnings introduced by stream reconfinclude/linux/sctp.h include/net/sctp/sm.h include/net/sctp/ulpevent.h +3 more+39 -300 replies
2/4sctp: fix some type cast warnings introduced by transport rhashtablenet/sctp/input.c+11 -110 replies
3/4sctp: fix a type cast warnings that causes a_rwnd gets the wrong valuenet/sctp/sm_sideeffect.c+2 -20 replies
4/4sctp: fix some type cast warnings introduced since very beginninginclude/linux/sctp.h include/uapi/linux/sctp.h net/sctp/ipv6.c +2 more+7 -72 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/4] sctp: a bunch of fixes for some sparse warnings

As Eric noticed, when running 'make C=2 M=net/sctp/', a plenty of warnings or errors checked by sparse appear. They are all problems about Endian and type cast.

Most of them are just warnings by which no issues could be caused while some might be bugs.

This patchset fixes them with four patches basically according to how they are introduced.

Xin Long (4):
sctp: fix some type cast warnings introduced by stream reconf
sctp: fix some type cast warnings introduced by transport rhashtable
sctp: fix a type cast warnings that causes a_rwnd gets the wrong value
sctp: fix some type cast warnings introduced since very beginning

 include/linux/sctp.h        | 34 +++++++++++++++++-----------------
 include/net/sctp/sm.h       |  2 +-
 include/net/sctp/ulpevent.h |  2 +-
 include/uapi/linux/sctp.h   |  2 +-
 net/sctp/input.c            | 22 +++++++++++-----------
 net/sctp/ipv6.c             |  2 +-
 net/sctp/sm_make_chunk.c    |  9 +++++----
 net/sctp/sm_sideeffect.c    |  8 ++++----
 net/sctp/stream.c           | 26 +++++++++++++++++---------
 net/sctp/ulpevent.c         |  2 +-
 10 files changed, 59 insertions(+), 50 deletions(-)
Signature · 1 line
2.1.0