]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sh: Warn against direct inclusion of <asm/rwsem.h>.
authorRobert P. J. Day <rpjday@mindspring.com>
Fri, 8 Jun 2007 02:56:31 +0000 (11:56 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 8 Jun 2007 02:56:31 +0000 (11:56 +0900)
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/rwsem.h

index 4931ba817d734aa8192374ef9e563d69b48f4c94..1987f3ea7f1b1422d8ae5ad02003d6f6c29a770a 100644 (file)
@@ -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>