summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/bitops.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/lib/bitops.c')
-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:
OpenPOWER on IntegriCloud