netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Xin Long <lucien.xin@gmail.com>
To: network dev <netdev@vger.kernel.org>, linux-sctp@vger.kernel.org
Cc: davem@davemloft.net, Eric Dumazet <edumazet@google.com>,
	Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>,
	Neil Horman <nhorman@tuxdriver.com>,
	Vlad Yasevich <vyasevich@gmail.com>
Subject: [PATCH net 0/4] sctp: a bunch of fixes for some sparse warnings
Date: Sat, 28 Oct 2017 19:43:53 +0800	[thread overview]
Message-ID: <cover.1509190967.git.lucien.xin@gmail.com> (raw)

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

             reply	other threads:[~2017-10-28 11:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-28 11:43 Xin Long [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1509190967.git.lucien.xin@gmail.com \
    --to=lucien.xin@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=linux-sctp@vger.kernel.org \
    --cc=marcelo.leitner@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=nhorman@tuxdriver.com \
    --cc=vyasevich@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).