summaryrefslogtreecommitdiff
path: root/fs/ntfs/layout.h
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2005-09-22 13:26:44 +0100
committerAnton Altaparmakov <aia21@cantab.net>2005-09-22 13:26:44 +0100
commit91fbc6edfa7086b5fcdb74ea82ab747104541f1f (patch)
tree37fc00d0402e634d9de6b880098bba68bdc2da78 /fs/ntfs/layout.h
parentefb0372bbaf5b829ff8c39db372779928af542a7 (diff)
downloadlwn-91fbc6edfa7086b5fcdb74ea82ab747104541f1f.tar.gz
lwn-91fbc6edfa7086b5fcdb74ea82ab747104541f1f.zip
NTFS: Fix sparse warnings that have crept in over time.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs/layout.h')
-rw-r--r--fs/ntfs/layout.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ntfs/layout.h b/fs/ntfs/layout.h
index 609ad1728ce4..dbf5c2a06dab 100644
--- a/fs/ntfs/layout.h
+++ b/fs/ntfs/layout.h
@@ -317,12 +317,13 @@ typedef u64 MFT_REF;
typedef le64 leMFT_REF;
#define MK_MREF(m, s) ((MFT_REF)(((MFT_REF)(s) << 48) | \
- ((MFT_REF)(m) & MFT_REF_MASK_CPU)))
+ ((MFT_REF)(m) & (u64)MFT_REF_MASK_CPU)))
#define MK_LE_MREF(m, s) cpu_to_le64(MK_MREF(m, s))
-#define MREF(x) ((unsigned long)((x) & MFT_REF_MASK_CPU))
+#define MREF(x) ((unsigned long)((x) & (u64)MFT_REF_MASK_CPU))
#define MSEQNO(x) ((u16)(((x) >> 48) & 0xffff))
-#define MREF_LE(x) ((unsigned long)(le64_to_cpu(x) & MFT_REF_MASK_CPU))
+#define MREF_LE(x) ((unsigned long)(le64_to_cpu(x) & \
+ (u64)MFT_REF_MASK_CPU))
#define MSEQNO_LE(x) ((u16)((le64_to_cpu(x) >> 48) & 0xffff))
#define IS_ERR_MREF(x) (((x) & 0x0000800000000000ULL) ? 1 : 0)