Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00557b59 authored by Paul Mackerras's avatar Paul Mackerras
Browse files

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: default avatarPaul Mackerras <paulus@samba.org>
parent a23414be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: