diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-07-23 17:45:58 -0700 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-07-24 01:14:41 +0000 |
commit | 5ca33c6ac30596fc1403a092f46ea48c406734e4 (patch) | |
tree | 28461539be539191d4fac9f2037ebb4dff9ceedc /fs/cifs/connect.c | |
parent | 8efdbde647f542ce0d303273df7ad4157caa03d0 (diff) | |
download | op-kernel-dev-5ca33c6ac30596fc1403a092f46ea48c406734e4.zip op-kernel-dev-5ca33c6ac30596fc1403a092f46ea48c406734e4.tar.gz |
cifs: assorted endian annotations
fs/cifs/cifssmb.c:3917:13: warning: incorrect type in assignment (different base types)
fs/cifs/cifssmb.c:3917:13: expected bool [unsigned] [usertype] is_unicode
fs/cifs/cifssmb.c:3917:13: got restricted __le16
The comment explains why __force is used here.
fs/cifs/connect.c:458:16: warning: cast to restricted __be32
fs/cifs/connect.c:458:16: warning: cast to restricted __be32
fs/cifs/connect.c:458:16: warning: cast to restricted __be32
fs/cifs/connect.c:458:16: warning: cast to restricted __be32
fs/cifs/connect.c:458:16: warning: cast to restricted __be32
fs/cifs/connect.c:458:16: warning: cast to restricted __be32
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 6444627..b51d5777 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -455,7 +455,7 @@ incomplete_rcv: /* Note that FC 1001 length is big endian on the wire, but we convert it here so it is always manipulated as host byte order */ - pdu_length = ntohl(smb_buffer->smb_buf_length); + pdu_length = be32_to_cpu((__force __be32)smb_buffer->smb_buf_length); smb_buffer->smb_buf_length = pdu_length; cFYI(1, ("rfc1002 length 0x%x", pdu_length+4)); |