These warnings were found by running 'make C=2 M=net/sctp/'. They are introduced by not aware of Endian when coding stream reconf patches. Since commit c0d8bab6ae51 ("sctp: add get and set sockopt for reconf_enable") enabled stream reconf feature for users, the Fixes tag below would use it.
Showing the changes to include/linux (1 of 6 files). Show all
Unified · Split
| @@ -716,28 +716,28 @@ struct sctp_reconf_chunk { · 715 unmodified lines | ||
| 716 | 716 | |
| 717 | 717 | struct sctp_strreset_outreq { |
| 718 | 718 | struct sctp_paramhdr param_hdr; |
| 719 | − __u32 request_seq; | |
| 720 | − __u32 response_seq; | |
| 721 | − __u32 send_reset_at_tsn; | |
| 722 | − __u16 list_of_streams[0]; | |
| 719 | + __be32 request_seq; | |
| 720 | + __be32 response_seq; | |
| 721 | + __be32 send_reset_at_tsn; | |
| 722 | + __be16 list_of_streams[0]; | |
| 723 | 723 | }; |
| 724 | 724 | |
| 725 | 725 | struct sctp_strreset_inreq { |
| 726 | 726 | struct sctp_paramhdr param_hdr; |
| 727 | − __u32 request_seq; | |
| 728 | − __u16 list_of_streams[0]; | |
| 727 | + __be32 request_seq; | |
| 728 | + __be16 list_of_streams[0]; | |
| 729 | 729 | }; |
| 730 | 730 | |
| 731 | 731 | struct sctp_strreset_tsnreq { |
| 732 | 732 | struct sctp_paramhdr param_hdr; |
| 733 | − __u32 request_seq; | |
| 733 | + __be32 request_seq; | |
| 734 | 734 | }; |
| 735 | 735 | |
| 736 | 736 | struct sctp_strreset_addstrm { |
| 737 | 737 | struct sctp_paramhdr param_hdr; |
| 738 | − __u32 request_seq; | |
| 739 | − __u16 number_of_streams; | |
| 740 | − __u16 reserved; | |
| 738 | + __be32 request_seq; | |
| 739 | + __be16 number_of_streams; | |
| 740 | + __be16 reserved; | |
| 741 | 741 | }; |
| 742 | 742 | |
| 743 | 743 | enum { |
| @@ -752,16 +752,16 @@ enum { · 8 unmodified lines | ||
| 752 | 752 | |
| 753 | 753 | struct sctp_strreset_resp { |
| 754 | 754 | struct sctp_paramhdr param_hdr; |
| 755 | − __u32 response_seq; | |
| 756 | − __u32 result; | |
| 755 | + __be32 response_seq; | |
| 756 | + __be32 result; | |
| 757 | 757 | }; |
| 758 | 758 | |
| 759 | 759 | struct sctp_strreset_resptsn { |
| 760 | 760 | struct sctp_paramhdr param_hdr; |
| 761 | − __u32 response_seq; | |
| 762 | − __u32 result; | |
| 763 | − __u32 senders_next_tsn; | |
| 764 | − __u32 receivers_next_tsn; | |
| 761 | + __be32 response_seq; | |
| 762 | + __be32 result; | |
| 763 | + __be32 senders_next_tsn; | |
| 764 | + __be32 receivers_next_tsn; | |
| 765 | 765 | }; |
| 766 | 766 | |
| 767 | 767 | #endif /* __LINUX_SCTP_H__ */ |