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