projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a23414b
)
powerpc: Fix find_next_bit on 32-bit
author
Paul Mackerras
<paulus@samba.org>
Thu, 10 Nov 2005 01:01:41 +0000
(12:01 +1100)
committer
Paul Mackerras
<paulus@samba.org>
Thu, 10 Nov 2005 01:01:41 +0000
(12:01 +1100)
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>
arch/powerpc/lib/bitops.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/lib/bitops.c
b/arch/powerpc/lib/bitops.c
index b67ce3004ebf535fec0881b55370ca98489e1c3e..f68ad71a018749523752b34ad65fed35520d4712 100644
(file)
--- 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: