netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/4] sctp: a bunch of fixes for some sparse warnings
@ 2017-10-28 11:43 Xin Long
  2017-10-28 11:43 ` [PATCH net 1/4] sctp: fix some type cast warnings introduced by stream reconf Xin Long
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Xin Long @ 2017-10-28 11:43 UTC (permalink / raw)
  To: network dev, linux-sctp
  Cc: davem, Eric Dumazet, Marcelo Ricardo Leitner, Neil Horman,
	Vlad Yasevich

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(-)

-- 
2.1.0

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-10-30 15:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-28 11:43 [PATCH net 0/4] sctp: a bunch of fixes for some sparse warnings Xin Long
2017-10-28 11:43 ` [PATCH net 1/4] sctp: fix some type cast warnings introduced by stream reconf Xin Long
2017-10-28 11:43 ` [PATCH net 2/4] sctp: fix some type cast warnings introduced by transport rhashtable Xin Long
2017-10-28 11:43 ` [PATCH net 3/4] sctp: fix a type cast warnings that causes a_rwnd gets the wrong value Xin Long
2017-10-28 11:43 ` [PATCH net 4/4] sctp: fix some type cast warnings introduced since very beginning Xin Long
2017-10-30 11:12   ` David Laight
2017-10-30 15:17     ` Xin Long
2017-10-29  9:04 ` [PATCH net 0/4] sctp: a bunch of fixes for some sparse warnings David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).