]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-generic/bitops.h
m68k: Disable Amiga serial console support if modular
[linux-2.6-omap-h63xx.git] / include / asm-generic / bitops.h
index e022a0f59e6bb8707268466922adcb849e9e284e..c9f369c4bd7ed3d9fd2e65ff5ee65634d48cf77e 100644 (file)
@@ -17,7 +17,9 @@
 #include <asm-generic/bitops/fls64.h>
 #include <asm-generic/bitops/find.h>
 
-#ifdef __KERNEL__
+#ifndef _LINUX_BITOPS_H
+#error only <linux/bitops.h> can be included directly
+#endif
 
 #include <asm-generic/bitops/sched.h>
 #include <asm-generic/bitops/ffs.h>
@@ -28,6 +30,4 @@
 #include <asm-generic/bitops/ext2-atomic.h>
 #include <asm-generic/bitops/minix.h>
 
-#endif /* __KERNEL__ */
-
 #endif /* _ASM_GENERIC_BITOPS_H */