summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2004-11-09 05:22:03 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-09 05:22:03 -0800
commit95885c8eb1ef2c955f939031a1469de6908cb89b (patch)
tree5411911c0316df6196054e208e22fc94bb2ae42d /include
parentd1959327d8629da57119da8d8d3091ab32306d9b (diff)
[PATCH] H8/300 build error fix
Because reference of fls becomes error. Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-h8300/bitops.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-h8300/bitops.h b/include/asm-h8300/bitops.h
index 94b7a46a6043..9612371ea3ce 100644
--- a/include/asm-h8300/bitops.h
+++ b/include/asm-h8300/bitops.h
@@ -6,7 +6,6 @@
* Copyright 2002, Yoshinori Sato
*/
-#include <linux/kernel.h>
#include <linux/config.h>
#include <linux/compiler.h>
#include <asm/byteorder.h> /* swab32 */
@@ -181,6 +180,8 @@ H8300_GEN_TEST_BITOP(test_and_change_bit,"bnot")
#define find_first_zero_bit(addr, size) \
find_next_zero_bit((addr), (size), 0)
+#define ffs(x) generic_ffs(x)
+
static __inline__ unsigned long __ffs(unsigned long word)
{
unsigned long result;
@@ -195,9 +196,6 @@ static __inline__ unsigned long __ffs(unsigned long word)
return result;
}
-#define ffs(x) generic_ffs(x)
-#define fls(x) generic_fls(x)
-
static __inline__ int find_next_zero_bit (void * addr, int size, int offset)
{
unsigned long *p = (unsigned long *)(((unsigned long)addr + (offset >> 3)) & ~3);
@@ -407,4 +405,6 @@ found_middle:
#endif /* __KERNEL__ */
+#define fls(x) generic_fls(x)
+
#endif /* _H8300_BITOPS_H */