summaryrefslogtreecommitdiffstats
path: root/scripts/include/asm-generic/bitops/__ffs.h
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/include/asm-generic/bitops/__ffs.h')
-rw-r--r--scripts/include/asm-generic/bitops/__ffs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/include/asm-generic/bitops/__ffs.h b/scripts/include/asm-generic/bitops/__ffs.h
index c94175015a..15ffaa12c5 100644
--- a/scripts/include/asm-generic/bitops/__ffs.h
+++ b/scripts/include/asm-generic/bitops/__ffs.h
@@ -2,6 +2,7 @@
#define _TOOLS_LINUX_ASM_GENERIC_BITOPS___FFS_H_
#include <asm/types.h>
+#include <asm-generic/bitsperlong.h>
/**
* __ffs - find first bit in word.
@@ -13,7 +14,7 @@ static __always_inline unsigned long __ffs(unsigned long word)
{
int num = 0;
-#if __BITS_PER_LONG == 64
+#if BITS_PER_LONG == 64
if ((word & 0xffffffff) == 0) {
num += 32;
word >>= 32;