From: Nickolay Vinogradov bugfix in fls64 on a big endian systems(against 2.6.25). (akpm: needs better changelog) Signed-off-by: Nickolay Vinogradov Signed-off-by: Andrew Morton --- include/asm-generic/bitops/fls64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN include/asm-generic/bitops/fls64.h~asm-generic-bitops-fls64h-fix-something include/asm-generic/bitops/fls64.h --- a/include/asm-generic/bitops/fls64.h~asm-generic-bitops-fls64h-fix-something +++ a/include/asm-generic/bitops/fls64.h @@ -20,7 +20,7 @@ static inline int fls64(__u64 x) __u32 h = x >> 32; if (h) return fls(h) + 32; - return fls(x); + return fls((__u32)x); } #elif BITS_PER_LONG == 64 static inline int fls64(__u64 x) _