aboutsummaryrefslogtreecommitdiff
path: root/include/asm-cris/bitops.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-cris/bitops.h')
-rw-r--r--include/asm-cris/bitops.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-cris/bitops.h b/include/asm-cris/bitops.h
index 617151b9b72..e2f49c27ed2 100644
--- a/include/asm-cris/bitops.h
+++ b/include/asm-cris/bitops.h
@@ -14,6 +14,10 @@
/* Currently this is unsuitable for consumption outside the kernel. */
#ifdef __KERNEL__
+#ifndef _LINUX_BITOPS_H
+#error only <linux/bitops.h> can be included directly
+#endif
+
#include <asm/arch/bitops.h>
#include <asm/system.h>
#include <asm/atomic.h>