public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] asm-generic/bitops/fls64.h
@ 2008-05-04 18:58 Виноградов Николай Михайлович
  2008-05-12 21:45 ` Andrew Morton
  2008-05-13 11:17 ` Alexander van Heukelum
  0 siblings, 2 replies; 13+ messages in thread
From: Виноградов Николай Михайлович @ 2008-05-04 18:58 UTC (permalink / raw)
  To: linux-kernel

bugfix in fls64 on a big endian systems(against 2.6.25).

Signed-off-by: Nickolay Vinogradov <nickolay@protei.ru>

--

diff --git a/include/asm-generic/bitops/fls64.h 
b/include/asm-generic/bitops/fls64.h
index 1b6b17c..2eedb6f 100644
--- a/include/asm-generic/bitops/fls64.h
+++ b/include/asm-generic/bitops/fls64.h
@@ -8,7 +8,7 @@ static inline int fls64(__u64 x)
         __u32 h = x >> 32;
         if (h)
                 return fls(h) + 32;
-       return fls(x);
+       return fls((__u32)x);
  }

  #endif /* _ASM_GENERIC_BITOPS_FLS64_H_ */

-- 
Nickolay Vinogradov
Protei Research and Development Center
St.Petersburg, 194044, Russia
Tel.: +7 812 449 47 27

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-05-13 16:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-04 18:58 [PATCH] asm-generic/bitops/fls64.h Виноградов Николай Михайлович
2008-05-12 21:45 ` Andrew Morton
2008-05-13 10:43   ` Nickolay Vinogradov
2008-05-13 15:31     ` Andrew Morton
2008-05-13 15:45       ` Nickolay Vinogradov
2008-05-13 11:17 ` Alexander van Heukelum
2008-05-13 12:29   ` Nickolay Vinogradov
2008-05-13 13:24     ` Alexander van Heukelum
2008-05-13 13:58       ` Russell King
2008-05-13 14:24         ` Alexander van Heukelum
2008-05-13 14:46           ` Nickolay Vinogradov
2008-05-13 14:35         ` Andreas Schwab
2008-05-13 16:11           ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox