xfs
[Top] [All Lists]

[PATCH] xfs_copy: fix minor sparse endian nit

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfs_copy: fix minor sparse endian nit
From: Eric Sandeen <sandeen@xxxxxxxxxx>
Date: Fri, 17 Jun 2016 11:44:44 -0500
Delivered-to: xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.1
The intermediate variable should not have been endian-annotated;
it is the local cpu representation not the on-disk representation.

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---

diff --git a/copy/xfs_copy.c b/copy/xfs_copy.c
index 2119a0b..1bc5163 100644
--- a/copy/xfs_copy.c
+++ b/copy/xfs_copy.c
@@ -506,7 +506,7 @@ sb_update_uuid(
         */
        if (!uuid_equal(&tcarg->uuid, &ag_hdr->xfs_sb->sb_uuid) &&
            xfs_sb_version_hascrc(sb) && !xfs_sb_version_hasmetauuid(sb)) {
-               __be32 feat;
+               __uint32_t feat;
 
                feat = be32_to_cpu(ag_hdr->xfs_sb->sb_features_incompat);
                feat |= XFS_SB_FEAT_INCOMPAT_META_UUID;

<Prev in Thread] Current Thread [Next in Thread>