--- zzzz-none-000/linux-2.6.39.4/fs/squashfs/xattr.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/fs/squashfs/xattr.c 2021-11-10 13:23:10.000000000 +0000 @@ -65,8 +65,8 @@ if (err < 0) goto failed; - name_size = le16_to_cpu(entry.size); - handler = squashfs_xattr_handler(le16_to_cpu(entry.type)); + name_size = sqsh16_to_cpu(entry.size); + handler = squashfs_xattr_handler(sqsh16_to_cpu(entry.type)); if (handler) prefix_size = handler->list(d, buffer, rest, NULL, name_size, handler->flags); @@ -103,7 +103,7 @@ goto failed; err = squashfs_read_metadata(sb, NULL, &start, &offset, - le32_to_cpu(val.vsize)); + sqsh32_to_cpu(val.vsize)); if (err < 0) goto failed; } @@ -141,8 +141,8 @@ if (err < 0) goto failed; - name_size = le16_to_cpu(entry.size); - type = le16_to_cpu(entry.type); + name_size = sqsh16_to_cpu(entry.size); + type = sqsh16_to_cpu(entry.type); prefix = type & SQUASHFS_XATTR_PREFIX_MASK; if (prefix == name_index && name_size == name_len) @@ -169,7 +169,7 @@ &start, &offset, sizeof(xattr_val)); if (err < 0) goto failed; - xattr = le64_to_cpu(xattr_val); + xattr = sqsh64_to_cpu(xattr_val); start = SQUASHFS_XATTR_BLK(xattr) + msblk->xattr_table; offset = SQUASHFS_XATTR_OFFSET(xattr); @@ -180,7 +180,7 @@ if (err < 0) goto failed; - vsize = le32_to_cpu(val.vsize); + vsize = sqsh32_to_cpu(val.vsize); if (buffer) { if (vsize > buffer_size) { err = -ERANGE; @@ -200,7 +200,7 @@ if (err < 0) goto failed; err = squashfs_read_metadata(sb, NULL, &start, &offset, - le32_to_cpu(val.vsize)); + sqsh32_to_cpu(val.vsize)); if (err < 0) goto failed; }