Skip to contentSkip to conversation

xfs: fix u32 type usage in sb validation function

PATCH In review Darrick J. Wong 2 participants 2 messages Jan 30, 2018 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: fix u32 type usage in sb validation function

From: Darrick J. Wong <[email protected]>

Don't use u32, use uint32_t, because this won't work in xfsprogs.

---
 fs/xfs/libxfs/xfs_sb.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/xfs/libxfs/xfs_sb.c +2 -2
index 46af6aa..a55f7a4 100644
@@ -118,8 +118,8 @@ xfs_mount_validate_sb(
 	bool		check_inprogress,
 	bool		check_version)
 {
-	u32		agcount = 0;
-	u32		rem;
+	uint32_t	agcount = 0;
+	uint32_t	rem;
 
 	if (sbp->sb_magicnum != XFS_SB_MAGIC) {
 		xfs_warn(mp, "bad magic number");
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Darrick J. Wong

From: Darrick J. Wong <[email protected]>

Don't use u32, use uint32_t, because this won't work in xfsprogs.

mmkay :)

Quoted 26 lines
---
 fs/xfs/libxfs/xfs_sb.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/xfs/libxfs/xfs_sb.c +2 -3
index 46af6aa..a55f7a4 100644
@@ -118,8 +118,8 @@ xfs_mount_validate_sb(
 	bool		check_inprogress,
 	bool		check_version)
 {
-	u32		agcount = 0;
-	u32		rem;
+	uint32_t	agcount = 0;
+	uint32_t	rem;
 
 	if (sbp->sb_magicnum != XFS_SB_MAGIC) {
 		xfs_warn(mp, "bad magic number");
--

To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html