diff options
author | Steve French <smfrench@gmail.com> | 2018-01-25 00:07:41 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2018-01-26 18:03:00 -0500 |
commit | 2026b06e9ce8521dae1a71654dc5a39e7ce3b871 (patch) | |
tree | f59794a7ba0a68e0886223423e42b4d81b21a07e /fs/cifs/smb2pdu.h | |
parent | 02cf5905e35df7e08691b6becda167858486da9a (diff) |
Cleanup some minor endian issues in smb3 rdma
Minor cleanup of some sparse warnings (including a few misc
endian fixes for the new smb3 rdma code)
Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r-- | fs/cifs/smb2pdu.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index 19d34881815f..6eb9f9691ed4 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h | |||
@@ -830,9 +830,9 @@ struct smb2_flush_rsp { | |||
830 | #define SMB2_READFLAG_READ_UNBUFFERED 0x01 | 830 | #define SMB2_READFLAG_READ_UNBUFFERED 0x01 |
831 | 831 | ||
832 | /* Channel field for read and write: exactly one of following flags can be set*/ | 832 | /* Channel field for read and write: exactly one of following flags can be set*/ |
833 | #define SMB2_CHANNEL_NONE 0x00000000 | 833 | #define SMB2_CHANNEL_NONE cpu_to_le32(0x00000000) |
834 | #define SMB2_CHANNEL_RDMA_V1 0x00000001 /* SMB3 or later */ | 834 | #define SMB2_CHANNEL_RDMA_V1 cpu_to_le32(0x00000001) /* SMB3 or later */ |
835 | #define SMB2_CHANNEL_RDMA_V1_INVALIDATE 0x00000002 /* SMB3.02 or later */ | 835 | #define SMB2_CHANNEL_RDMA_V1_INVALIDATE cpu_to_le32(0x00000002) /* >= SMB3.02 */ |
836 | 836 | ||
837 | /* SMB2 read request without RFC1001 length at the beginning */ | 837 | /* SMB2 read request without RFC1001 length at the beginning */ |
838 | struct smb2_read_plain_req { | 838 | struct smb2_read_plain_req { |
@@ -847,8 +847,8 @@ struct smb2_read_plain_req { | |||
847 | __le32 MinimumCount; | 847 | __le32 MinimumCount; |
848 | __le32 Channel; /* MBZ except for SMB3 or later */ | 848 | __le32 Channel; /* MBZ except for SMB3 or later */ |
849 | __le32 RemainingBytes; | 849 | __le32 RemainingBytes; |
850 | __le16 ReadChannelInfoOffset; /* Reserved MBZ */ | 850 | __le16 ReadChannelInfoOffset; |
851 | __le16 ReadChannelInfoLength; /* Reserved MBZ */ | 851 | __le16 ReadChannelInfoLength; |
852 | __u8 Buffer[1]; | 852 | __u8 Buffer[1]; |
853 | } __packed; | 853 | } __packed; |
854 | 854 | ||
@@ -877,8 +877,8 @@ struct smb2_write_req { | |||
877 | __u64 VolatileFileId; /* opaque endianness */ | 877 | __u64 VolatileFileId; /* opaque endianness */ |
878 | __le32 Channel; /* Reserved MBZ */ | 878 | __le32 Channel; /* Reserved MBZ */ |
879 | __le32 RemainingBytes; | 879 | __le32 RemainingBytes; |
880 | __le16 WriteChannelInfoOffset; /* Reserved MBZ */ | 880 | __le16 WriteChannelInfoOffset; |
881 | __le16 WriteChannelInfoLength; /* Reserved MBZ */ | 881 | __le16 WriteChannelInfoLength; |
882 | __le32 Flags; | 882 | __le32 Flags; |
883 | __u8 Buffer[1]; | 883 | __u8 Buffer[1]; |
884 | } __packed; | 884 | } __packed; |