Commit d0724714 authored by Steve French's avatar Steve French Committed by Linus Torvalds

[PATCH] cifs: Fix PPC64 compile error

.. and do not double endian convert the special characters whem mounted
with mapchars mount parm. 

Signed-off-by: Steve French (sfrench@us.ibm.com)
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 737b758c
...@@ -519,13 +519,13 @@ dump_smb(struct smb_hdr *smb_buf, int smb_buf_length) ...@@ -519,13 +519,13 @@ dump_smb(struct smb_hdr *smb_buf, int smb_buf_length)
/* Windows maps these to the user defined 16 bit Unicode range since they are /* Windows maps these to the user defined 16 bit Unicode range since they are
reserved symbols (along with \ and /), otherwise illegal to store reserved symbols (along with \ and /), otherwise illegal to store
in filenames in NTFS */ in filenames in NTFS */
#define UNI_ASTERIK cpu_to_le16('*' + 0xF000) #define UNI_ASTERIK (__u16) ('*' + 0xF000)
#define UNI_QUESTION cpu_to_le16('?' + 0xF000) #define UNI_QUESTION (__u16) ('?' + 0xF000)
#define UNI_COLON cpu_to_le16(':' + 0xF000) #define UNI_COLON (__u16) (':' + 0xF000)
#define UNI_GRTRTHAN cpu_to_le16('>' + 0xF000) #define UNI_GRTRTHAN (__u16) ('>' + 0xF000)
#define UNI_LESSTHAN cpu_to_le16('<' + 0xF000) #define UNI_LESSTHAN (__u16) ('<' + 0xF000)
#define UNI_PIPE cpu_to_le16('|' + 0xF000) #define UNI_PIPE (__u16) ('|' + 0xF000)
#define UNI_SLASH cpu_to_le16('\\' + 0xF000) #define UNI_SLASH (__u16) ('\\' + 0xF000)
/* Convert 16 bit Unicode pathname from wire format to string in current code /* Convert 16 bit Unicode pathname from wire format to string in current code
page. Conversion may involve remapping up the seven characters that are page. Conversion may involve remapping up the seven characters that are
...@@ -536,7 +536,7 @@ cifs_convertUCSpath(char *target, const __le16 * source, int maxlen, ...@@ -536,7 +536,7 @@ cifs_convertUCSpath(char *target, const __le16 * source, int maxlen,
const struct nls_table * cp) const struct nls_table * cp)
{ {
int i,j,len; int i,j,len;
wchar_t src_char; __u16 src_char;
for(i = 0, j = 0; i < maxlen; i++) { for(i = 0, j = 0; i < maxlen; i++) {
src_char = le16_to_cpu(source[i]); src_char = le16_to_cpu(source[i]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment