This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / include / asm-h8300 / bitops.h
index 9612371..94b7a46 100644 (file)
@@ -6,6 +6,7 @@
  * Copyright 2002, Yoshinori Sato
  */
 
+#include <linux/kernel.h>
 #include <linux/config.h>
 #include <linux/compiler.h>
 #include <asm/byteorder.h>     /* swab32 */
@@ -180,8 +181,6 @@ 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;
@@ -196,6 +195,9 @@ 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);
@@ -405,6 +407,4 @@ found_middle:
 
 #endif /* __KERNEL__ */
 
-#define fls(x) generic_fls(x)
-
 #endif /* _H8300_BITOPS_H */