summaryrefslogtreecommitdiffstats
path: root/include/asm-generic/bitops/__fls.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/bitops/__fls.h')
-rw-r--r--include/asm-generic/bitops/__fls.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-generic/bitops/__fls.h b/include/asm-generic/bitops/__fls.h
index 54ccccf96e..e974ec932e 100644
--- a/include/asm-generic/bitops/__fls.h
+++ b/include/asm-generic/bitops/__fls.h
@@ -10,9 +10,9 @@
*
* Undefined if no set bit exists, so code should check against 0 first.
*/
-static __always_inline unsigned long generic___fls(unsigned long word)
+static __always_inline unsigned int generic___fls(unsigned long word)
{
- int num = BITS_PER_LONG - 1;
+ unsigned int num = BITS_PER_LONG - 1;
#if BITS_PER_LONG == 64
if (!(word & (~0ul << 32))) {