aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@mindspring.com>2007-06-08 11:56:31 +0900
committerPaul Mundt <lethal@linux-sh.org>2007-06-08 11:56:31 +0900
commit711be60522829beb82807de2867e56513934ebec (patch)
tree519231a44fa5c2046c5e01035e6333ca9403ce1a /include/asm-sh
parentsh: Kill off dead SH7604 support. (diff)
downloadlinux-dev-711be60522829beb82807de2867e56513934ebec.tar.xz
linux-dev-711be60522829beb82807de2867e56513934ebec.zip
sh: Warn against direct inclusion of <asm/rwsem.h>.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh')
-rw-r--r--include/asm-sh/rwsem.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-sh/rwsem.h b/include/asm-sh/rwsem.h
index 4931ba817d73..1987f3ea7f1b 100644
--- a/include/asm-sh/rwsem.h
+++ b/include/asm-sh/rwsem.h
@@ -1,11 +1,15 @@
/*
- * include/asm-ppc/rwsem.h: R/W semaphores for SH using the stuff
+ * include/asm-sh/rwsem.h: R/W semaphores for SH using the stuff
* in lib/rwsem.c.
*/
#ifndef _ASM_SH_RWSEM_H
#define _ASM_SH_RWSEM_H
+#ifndef _LINUX_RWSEM_H
+#error "please don't include asm/rwsem.h directly, use linux/rwsem.h instead"
+#endif
+
#ifdef __KERNEL__
#include <linux/list.h>
#include <linux/spinlock.h>