From 6ab2ca0260eabbea394c29746a7268714715cde7 Mon Sep 17 00:00:00 2001 From: David Chinner Date: Fri, 7 Dec 2007 14:08:48 +1100 Subject: [PATCH] --- yaml --- r: 84480 b: refs/heads/master c: edd319dc527733e61eec5bdc9ce20c94634b6482 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/xfs/xfs_bit.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index eff70cc15de7..dd13a08d421d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 45ba598e56fa9f77801e06432b50580d97994fa4 +refs/heads/master: edd319dc527733e61eec5bdc9ce20c94634b6482 diff --git a/trunk/fs/xfs/xfs_bit.h b/trunk/fs/xfs/xfs_bit.h index 0f9fc9a3c415..325a007dec91 100644 --- a/trunk/fs/xfs/xfs_bit.h +++ b/trunk/fs/xfs/xfs_bit.h @@ -61,15 +61,15 @@ static inline int xfs_highbit64(__uint64_t v) /* Get low bit set out of 32-bit argument, -1 if none set */ static inline int xfs_lowbit32(__uint32_t v) { - unsigned long t = v; - return (v) ? find_first_bit(&t, 32) : -1; + __uint32_t t = v; + return (t) ? find_first_bit((unsigned long *)&t, 32) : -1; } /* Get low bit set out of 64-bit argument, -1 if none set */ static inline int xfs_lowbit64(__uint64_t v) { - unsigned long t = v; - return (v) ? find_first_bit(&t, 64) : -1; + __uint64_t t = v; + return (t) ? find_first_bit((unsigned long *)&t, 64) : -1; } /* Return whether bitmap is empty (1 == empty) */