Commit 022416967a814aa1b3a9476a842c0947a1a9d784

Authored by David Howells
Committed by Linus Torvalds
1 parent 69de7fc037

[PATCH] LOG2: Make powerpc's __ilog2_u64() take a 64-bit argument

Make powerpc's __ilog2_u64() take a 64-bit argument.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

include/asm-powerpc/bitops.h
... ... @@ -209,7 +209,7 @@
209 209  
210 210 #ifdef __powerpc64__
211 211 static inline __attribute__((const))
212   -int __ilog2_u64(u32 n)
  212 +int __ilog2_u64(u64 n)
213 213 {
214 214 int bit;
215 215 asm ("cntlzd %0,%1" : "=r" (bit) : "r" (n));