summaryrefslogtreecommitdiff
path: root/include/asm-generic/bitops/builtin-__fls.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/bitops/builtin-__fls.h')
-rw-r--r--include/asm-generic/bitops/builtin-__fls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/bitops/builtin-__fls.h b/include/asm-generic/bitops/builtin-__fls.h
index 43a5aa9afbdb..6d72fc8a5259 100644
--- a/include/asm-generic/bitops/builtin-__fls.h
+++ b/include/asm-generic/bitops/builtin-__fls.h
@@ -8,7 +8,7 @@
*
* Undefined if no set bit exists, so code should check against 0 first.
*/
-static __always_inline unsigned long __fls(unsigned long word)
+static __always_inline unsigned int __fls(unsigned long word)
{
return (sizeof(word) * 8) - 1 - __builtin_clzl(word);
}