aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-11-10 12:01:41 +1100
committerPaul Mackerras <paulus@samba.org>2005-11-10 12:01:41 +1100
commit00557b59c69ce284e5a61bcfcdbcc3dc867cb2da (patch)
tree7e492fd64f4fe1308f5aff80b8292419f518605f
parenta23414beb6607dfd40d3245f7df9dd97a4e2c82b (diff)
downloadkernel_samsung_tuna-00557b59c69ce284e5a61bcfcdbcc3dc867cb2da.zip
kernel_samsung_tuna-00557b59c69ce284e5a61bcfcdbcc3dc867cb2da.tar.gz
kernel_samsung_tuna-00557b59c69ce284e5a61bcfcdbcc3dc867cb2da.tar.bz2
powerpc: Fix find_next_bit on 32-bit
We had a "64" that didn't get changed to BITS_PER_LONG, resulting in find_next_bit not working correctly. Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--arch/powerpc/lib/bitops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/lib/bitops.c b/arch/powerpc/lib/bitops.c
index b67ce30..f68ad71 100644
--- a/arch/powerpc/lib/bitops.c
+++ b/arch/powerpc/lib/bitops.c
@@ -41,7 +41,7 @@ unsigned long find_next_bit(const unsigned long *addr, unsigned long size,
tmp = *p;
found_first:
- tmp &= (~0UL >> (64 - size));
+ tmp &= (~0UL >> (BITS_PER_LONG - size));
if (tmp == 0UL) /* Are any bits set? */
return result + size; /* Nope. */
found_middle: