XTENSA: warn about including <asm/rwsem.h> directly.
authorRobert P. J. Day <rpjday@crashcourse.ca>
Wed, 30 Jul 2008 19:48:53 +0000 (12:48 -0700)
committerChris Zankel <chris@zankel.net>
Wed, 15 Oct 2008 01:59:36 +0000 (18:59 -0700)
For consistency with other architectures, warn about including
<asm-xtensa/rwsem.h> directly.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Zankel <chris@zankel.net>
include/asm-xtensa/rwsem.h

index 0aad3a5875516a3c640b5e7cddf41cf7c044225f..e39edf5c86f2da432c181f1e503c787137e4c623 100644 (file)
 #ifndef _XTENSA_RWSEM_H
 #define _XTENSA_RWSEM_H
 
+#ifndef _LINUX_RWSEM_H
+#error "Please don't include <asm/rwsem.h> directly, use <linux/rwsem.h> instead."
+#endif
+
 #include <linux/list.h>
 #include <linux/spinlock.h>
 #include <asm/atomic.h>