--- zzzz-none-000/linux-2.6.39.4/fs/squashfs/xattr_id.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/fs/squashfs/xattr_id.c 2021-11-10 13:23:10.000000000 +0000 @@ -44,7 +44,7 @@ struct squashfs_sb_info *msblk = sb->s_fs_info; int block = SQUASHFS_XATTR_BLOCK(index); int offset = SQUASHFS_XATTR_BLOCK_OFFSET(index); - u64 start_block = le64_to_cpu(msblk->xattr_id_table[block]); + u64 start_block = sqsh64_to_cpu(msblk->xattr_id_table[block]); struct squashfs_xattr_id id; int err; @@ -53,9 +53,9 @@ if (err < 0) return err; - *xattr = le64_to_cpu(id.xattr); - *size = le32_to_cpu(id.size); - *count = le32_to_cpu(id.count); + *xattr = sqsh64_to_cpu(id.xattr); + *size = sqsh32_to_cpu(id.size); + *count = sqsh32_to_cpu(id.count); return 0; } @@ -76,8 +76,8 @@ ERROR("unable to read xattr id table\n"); return ERR_PTR(err); } - *xattr_table_start = le64_to_cpu(id_table.xattr_table_start); - *xattr_ids = le32_to_cpu(id_table.xattr_ids); + *xattr_table_start = sqsh64_to_cpu(id_table.xattr_table_start); + *xattr_ids = sqsh32_to_cpu(id_table.xattr_ids); len = SQUASHFS_XATTR_BLOCK_BYTES(*xattr_ids); TRACE("In read_xattr_index_table, length %d\n", len);