Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105785
b: refs/heads/master
c: 8b5ac31
h: refs/heads/master
i:
  105783: e3e950e
v: v3
  • Loading branch information
Harvey Harrison authored and Linus Torvalds committed Jul 25, 2008
1 parent d099dc3 commit 46bbcb5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b7bbf8fa6ba329b3552b75a0716f5fbc6f839499
refs/heads/master: 8b5ac31e27135a6f2c210c40d03bf8f1b3a86b77
4 changes: 2 additions & 2 deletions trunk/include/linux/reiserfs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@ struct item_head {
** p is the array of __u32, i is the index into the array, v is the value
** to store there.
*/
#define get_block_num(p, i) le32_to_cpu(get_unaligned((p) + (i)))
#define put_block_num(p, i, v) put_unaligned(cpu_to_le32(v), (p) + (i))
#define get_block_num(p, i) get_unaligned_le32((p) + (i))
#define put_block_num(p, i, v) put_unaligned_le32((v), (p) + (i))

//
// in old version uniqueness field shows key type
Expand Down
19 changes: 7 additions & 12 deletions trunk/include/linux/smb_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,13 @@ static inline struct smb_inode_info *SMB_I(struct inode *inode)
}

/* macro names are short for word, double-word, long value (?) */
#define WVAL(buf,pos) \
(le16_to_cpu(get_unaligned((__le16 *)((u8 *)(buf) + (pos)))))
#define DVAL(buf,pos) \
(le32_to_cpu(get_unaligned((__le32 *)((u8 *)(buf) + (pos)))))
#define LVAL(buf,pos) \
(le64_to_cpu(get_unaligned((__le64 *)((u8 *)(buf) + (pos)))))
#define WSET(buf,pos,val) \
put_unaligned(cpu_to_le16((u16)(val)), (__le16 *)((u8 *)(buf) + (pos)))
#define DSET(buf,pos,val) \
put_unaligned(cpu_to_le32((u32)(val)), (__le32 *)((u8 *)(buf) + (pos)))
#define LSET(buf,pos,val) \
put_unaligned(cpu_to_le64((u64)(val)), (__le64 *)((u8 *)(buf) + (pos)))
#define WVAL(buf, pos) (get_unaligned_le16((u8 *)(buf) + (pos)))
#define DVAL(buf, pos) (get_unaligned_le32((u8 *)(buf) + (pos)))
#define LVAL(buf, pos) (get_unaligned_le64((u8 *)(buf) + (pos)))

#define WSET(buf, pos, val) put_unaligned_le16((val), (u8 *)(buf) + (pos))
#define DSET(buf, pos, val) put_unaligned_le32((val), (u8 *)(buf) + (pos))
#define LSET(buf, pos, val) put_unaligned_le64((val), (u8 *)(buf) + (pos))

/* where to find the base of the SMB packet proper */
#define smb_base(buf) ((u8 *)(((u8 *)(buf))+4))
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/net/ieee80211_radiotap.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static inline int ieee80211_get_radiotap_len(unsigned char *data)
struct ieee80211_radiotap_header *hdr =
(struct ieee80211_radiotap_header *)data;

return le16_to_cpu(get_unaligned(&hdr->it_len));
return get_unaligned_le16(&hdr->it_len);
}

#endif /* IEEE80211_RADIOTAP_H */

0 comments on commit 46bbcb5

Please sign in to comment.