History

sctp: fix some type cast warnings introduced since very beginning

These warnings were found by running 'make C=2 M=net/sctp/'. They are there since very beginning. Note after this patch, there still one warning left in sctp_outq_flush(): sctp_chunk_fail(chunk, SCTP_ERROR_INV_STRM) Since it has been moved to sctp_stream_outq_migrate on net-next, to avoid the extra job when merging net-next to net, I will post the fix for it after the merging is done.

Xin Long committed 9 years ago

Commit 978aa041 parent f6fc6bc5 files · +7 −7Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/linux/sctp.h+1−1
@@ -376,7 +376,7 @@ struct sctp_remote_error { · 375 unmodified lines
376376 __u16 sre_type;
377377 __u16 sre_flags;
378378 __u32 sre_length;
379− __u16 sre_error;
379+ __be16 sre_error;
380380 sctp_assoc_t sre_assoc_id;
381381 __u8 sre_data[0];
382382 };