forbid asm/bitops.h direct inclusion
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / asm-m68knommu / bitops.h
index d7fa7d9c0e0f0c87c80e82366be1b800b6de01aa..f8dfb7ba2e2573566a58cf97d01942adc48d4785 100644 (file)
@@ -7,10 +7,13 @@
 
 #include <linux/compiler.h>
 #include <asm/byteorder.h>     /* swab32 */
-#include <asm/system.h>                /* save_flags */
 
 #ifdef __KERNEL__
 
+#ifndef _LINUX_BITOPS_H
+#error only <linux/bitops.h> can be included directly
+#endif
+
 #include <asm-generic/bitops/ffs.h>
 #include <asm-generic/bitops/__ffs.h>
 #include <asm-generic/bitops/sched.h>
@@ -161,6 +164,7 @@ static __inline__ int __test_bit(int nr, const volatile unsigned long * addr)
 
 #include <asm-generic/bitops/find.h>
 #include <asm-generic/bitops/hweight.h>
+#include <asm-generic/bitops/lock.h>
 
 static __inline__ int ext2_set_bit(int nr, volatile void * addr)
 {