summaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/rwsem.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/rwsem.h')
-rw-r--r--include/asm-powerpc/rwsem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-powerpc/rwsem.h b/include/asm-powerpc/rwsem.h
index e929145e1e4..cefc14728cc 100644
--- a/include/asm-powerpc/rwsem.h
+++ b/include/asm-powerpc/rwsem.h
@@ -1,6 +1,10 @@
#ifndef _ASM_POWERPC_RWSEM_H
#define _ASM_POWERPC_RWSEM_H
+#ifndef _LINUX_RWSEM_H
+#error "Please don't include <asm/rwsem.h> directly, use <linux/rwsem.h> instead."
+#endif
+
#ifdef __KERNEL__
/*