mbox series

[net,0/3] sctp: fix some other sparse errors

Message ID cover.1511698478.git.lucien.xin@gmail.com
Headers show
Series sctp: fix some other sparse errors | expand

Message

Xin Long Nov. 26, 2017, 12:16 p.m. UTC
After the last fixes for sparse errors, there are still three sparse
errors in sctp codes, two of them are type cast, and the other one
is using extern.

Xin Long (3):
  sctp: force SCTP_ERROR_INV_STRM with __u32 when calling
    sctp_chunk_fail
  sctp: force the params with right types for sctp csum apis
  sctp: remove extern from stream sched

 include/net/sctp/checksum.h     | 13 +++++++------
 include/net/sctp/sctp.h         |  5 +++++
 include/net/sctp/stream_sched.h |  5 +++++
 net/sctp/protocol.c             |  1 +
 net/sctp/stream.c               |  2 +-
 net/sctp/stream_sched.c         | 25 ++++++++++++++++++-------
 net/sctp/stream_sched_prio.c    |  7 ++++++-
 net/sctp/stream_sched_rr.c      |  7 ++++++-
 8 files changed, 49 insertions(+), 16 deletions(-)

Comments

Neil Horman Nov. 27, 2017, 2 p.m. UTC | #1
On Sun, Nov 26, 2017 at 08:16:05PM +0800, Xin Long wrote:
> After the last fixes for sparse errors, there are still three sparse
> errors in sctp codes, two of them are type cast, and the other one
> is using extern.
> 
> Xin Long (3):
>   sctp: force SCTP_ERROR_INV_STRM with __u32 when calling
>     sctp_chunk_fail
>   sctp: force the params with right types for sctp csum apis
>   sctp: remove extern from stream sched
> 
>  include/net/sctp/checksum.h     | 13 +++++++------
>  include/net/sctp/sctp.h         |  5 +++++
>  include/net/sctp/stream_sched.h |  5 +++++
>  net/sctp/protocol.c             |  1 +
>  net/sctp/stream.c               |  2 +-
>  net/sctp/stream_sched.c         | 25 ++++++++++++++++++-------
>  net/sctp/stream_sched_prio.c    |  7 ++++++-
>  net/sctp/stream_sched_rr.c      |  7 ++++++-
>  8 files changed, 49 insertions(+), 16 deletions(-)
> 
> -- 
> 2.1.0
> 
> 
Series
Acked-by: Neil Horman <nhorman@tuxdriver.com>
David Miller Nov. 28, 2017, 4 p.m. UTC | #2
From: Xin Long <lucien.xin@gmail.com>
Date: Sun, 26 Nov 2017 20:16:05 +0800

> After the last fixes for sparse errors, there are still three sparse
> errors in sctp codes, two of them are type cast, and the other one
> is using extern.

Series applied.