Commit 6ca1584173d0320f47464092eb180a17259cc3f9
Committed by
Linus Torvalds
1 parent
2ef1031282
Exists in
master
and in
7 other branches
[PATCH] smbfs endianness annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff
include/linux/smb_fs.h
... | ... | @@ -43,17 +43,17 @@ |
43 | 43 | |
44 | 44 | /* macro names are short for word, double-word, long value (?) */ |
45 | 45 | #define WVAL(buf,pos) \ |
46 | - (le16_to_cpu(get_unaligned((u16 *)((u8 *)(buf) + (pos))))) | |
46 | + (le16_to_cpu(get_unaligned((__le16 *)((u8 *)(buf) + (pos))))) | |
47 | 47 | #define DVAL(buf,pos) \ |
48 | - (le32_to_cpu(get_unaligned((u32 *)((u8 *)(buf) + (pos))))) | |
48 | + (le32_to_cpu(get_unaligned((__le32 *)((u8 *)(buf) + (pos))))) | |
49 | 49 | #define LVAL(buf,pos) \ |
50 | - (le64_to_cpu(get_unaligned((u64 *)((u8 *)(buf) + (pos))))) | |
50 | + (le64_to_cpu(get_unaligned((__le64 *)((u8 *)(buf) + (pos))))) | |
51 | 51 | #define WSET(buf,pos,val) \ |
52 | - put_unaligned(cpu_to_le16((u16)(val)), (u16 *)((u8 *)(buf) + (pos))) | |
52 | + put_unaligned(cpu_to_le16((u16)(val)), (__le16 *)((u8 *)(buf) + (pos))) | |
53 | 53 | #define DSET(buf,pos,val) \ |
54 | - put_unaligned(cpu_to_le32((u32)(val)), (u32 *)((u8 *)(buf) + (pos))) | |
54 | + put_unaligned(cpu_to_le32((u32)(val)), (__le32 *)((u8 *)(buf) + (pos))) | |
55 | 55 | #define LSET(buf,pos,val) \ |
56 | - put_unaligned(cpu_to_le64((u64)(val)), (u64 *)((u8 *)(buf) + (pos))) | |
56 | + put_unaligned(cpu_to_le64((u64)(val)), (__le64 *)((u8 *)(buf) + (pos))) | |
57 | 57 | |
58 | 58 | /* where to find the base of the SMB packet proper */ |
59 | 59 | #define smb_base(buf) ((u8 *)(((u8 *)(buf))+4)) |