From: Akinobu Mita Date: Fri, 3 Feb 2006 11:03:46 +0000 (-0800) Subject: [PATCH] fix generic_fls64() X-Git-Tag: v2.6.16-rc3~290 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f434baf4c6ae4a392b7c34843825af0894c89db2;p=linux-2.6 [PATCH] fix generic_fls64() Noticed by Rune Torgersen. Fix generic_fls64(). tcp_cubic is using fls64(). Signed-off-by: Akinobu Mita Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/bitops.h b/include/linux/bitops.h index 6a2a19f14b..208650b1ad 100644 --- a/include/linux/bitops.h +++ b/include/linux/bitops.h @@ -81,7 +81,7 @@ static inline int generic_fls64(__u64 x) { __u32 h = x >> 32; if (h) - return fls(x) + 32; + return fls(h) + 32; return fls(x); }