summaryrefslogtreecommitdiff
path: root/include/asm-generic/bitops/__ffs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/bitops/__ffs.h')
-rw-r--r--include/asm-generic/bitops/__ffs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-generic/bitops/__ffs.h b/include/asm-generic/bitops/__ffs.h
index 446fea6dda78..2d08c750c8a7 100644
--- a/include/asm-generic/bitops/__ffs.h
+++ b/include/asm-generic/bitops/__ffs.h
@@ -10,9 +10,9 @@
*
* Undefined if no bit exists, so code should check against 0 first.
*/
-static __always_inline unsigned long generic___ffs(unsigned long word)
+static __always_inline unsigned int generic___ffs(unsigned long word)
{
- int num = 0;
+ unsigned int num = 0;
#if BITS_PER_LONG == 64
if ((word & 0xffffffff) == 0) {