Skip to content

Commit

Permalink
powerpc: Fix find_next_bit on 32-bit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mackerras committed Nov 10, 2005
1 parent a23414b commit 00557b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/lib/bitops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 00557b5

Please sign in to comment.