diff options
author | Phillip Lougher | 2010-10-24 23:13:57 +0100 |
---|---|---|
committer | Phillip Lougher | 2010-10-28 17:44:11 +0100 |
commit | 07724586b44e69a08af3102be3f9afd350eda1e3 (patch) | |
tree | e2b821739c7c9e27969a0fcf3748983317df13da /fs/squashfs | |
parent | f6f94e2ab1b33f0082ac22d71f66385a60d8157f (diff) |
Squashfs: fix use of __le64 annotated variable
This fixes a sparse with endian checking warning.
Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
Diffstat (limited to 'fs/squashfs')
-rw-r--r-- | fs/squashfs/xattr.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/squashfs/xattr.c b/fs/squashfs/xattr.c index 652b8541f9c6..3876c36699a1 100644 --- a/fs/squashfs/xattr.c +++ b/fs/squashfs/xattr.c @@ -158,17 +158,18 @@ static int squashfs_xattr_get(struct inode *inode, int name_index, strncmp(target, name, name_size) == 0) { /* found xattr */ if (type & SQUASHFS_XATTR_VALUE_OOL) { - __le64 xattr; + __le64 xattr_val; + u64 xattr; /* val is a reference to the real location */ err = squashfs_read_metadata(sb, &val, &start, &offset, sizeof(val)); if (err < 0) goto failed; - err = squashfs_read_metadata(sb, &xattr, &start, - &offset, sizeof(xattr)); + err = squashfs_read_metadata(sb, &xattr_val, + &start, &offset, sizeof(xattr_val)); if (err < 0) goto failed; - xattr = le64_to_cpu(xattr); + xattr = le64_to_cpu(xattr_val); start = SQUASHFS_XATTR_BLK(xattr) + msblk->xattr_table; offset = SQUASHFS_XATTR_OFFSET(xattr); |