]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-alpha/bitops.h
net: drop unused BUG_TRAP()
[linux-2.6-omap-h63xx.git] / include / asm-alpha / bitops.h
index 381b4f5b4d5dfb9c25a5ce84ca43d651710da9f2..15f3ae25c51137bb8af4a67b5d5e8cbbea328241 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _ALPHA_BITOPS_H
 #define _ALPHA_BITOPS_H
 
+#ifndef _LINUX_BITOPS_H
+#error only <linux/bitops.h> can be included directly
+#endif
+
 #include <asm/compiler.h>
 #include <asm/barrier.h>
 
@@ -384,6 +388,11 @@ static inline int fls64(unsigned long x)
 }
 #endif
 
+static inline unsigned long __fls(unsigned long x)
+{
+       return fls64(x) - 1;
+}
+
 static inline int fls(int x)
 {
        return fls64((unsigned int) x);