Re: [PATCH] SCTP: fix many sparse endian warnings

2005-08-02 Thread Alexey Dobriyan
On Tue, Aug 02, 2005 at 11:13:39AM -0700, Randy.Dunlap wrote: > On Tue, 2 Aug 2005, Sridhar Samudrala wrote: > > > On Fri, 2005-07-29 at 03:53 +0400, Alexey Dobriyan wrote: > > > * Use __be16, __be32. > > > * Add SCTP_NL() in the spirit of SCTP_U32() and friends. > > > * Tiny tweak in sctp_chunk_a

Re: [PATCH] SCTP: fix many sparse endian warnings

2005-08-02 Thread Randy.Dunlap
On Tue, 2 Aug 2005, Sridhar Samudrala wrote: > On Fri, 2005-07-29 at 03:53 +0400, Alexey Dobriyan wrote: > > * Use __be16, __be32. > > * Add SCTP_NL() in the spirit of SCTP_U32() and friends. > > * Tiny tweak in sctp_chunk_assign_ssn(). > > How do we run sparse to check for endian errors? > I trie

Re: [PATCH] SCTP: fix many sparse endian warnings

2005-08-02 Thread Sridhar Samudrala
On Fri, 2005-07-29 at 03:53 +0400, Alexey Dobriyan wrote: > * Use __be16, __be32. > * Add SCTP_NL() in the spirit of SCTP_U32() and friends. > * Tiny tweak in sctp_chunk_assign_ssn(). How do we run sparse to check for endian errors? I tried make C=1 net/sctp/sctp.ko, but i didn't see any endian wa

[PATCH] SCTP: fix many sparse endian warnings

2005-07-28 Thread Alexey Dobriyan
* Use __be16, __be32. * Add SCTP_NL() in the spirit of SCTP_U32() and friends. * Tiny tweak in sctp_chunk_assign_ssn(). Signed-off-by: Alexey Dobriyan <[EMAIL PROTECTED]> --- include/linux/sctp.h | 60 ++--- include/net/sctp/command.h |2 + inc