diff options
author | Robert P. J. Day <rpjday@crashcourse.ca> | 2008-07-30 21:48:53 +0200 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2008-10-15 03:59:36 +0200 |
commit | 14ac12de07112e727c161644798415368dc4b343 (patch) | |
tree | fbdbbad6d6cd7730fefbb628a38228891584bded /include/asm-xtensa | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 (diff) | |
download | linux-14ac12de07112e727c161644798415368dc4b343.tar.xz linux-14ac12de07112e727c161644798415368dc4b343.zip |
XTENSA: warn about including <asm/rwsem.h> directly.
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>
Diffstat (limited to 'include/asm-xtensa')
-rw-r--r-- | include/asm-xtensa/rwsem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-xtensa/rwsem.h b/include/asm-xtensa/rwsem.h index 0aad3a587551..e39edf5c86f2 100644 --- a/include/asm-xtensa/rwsem.h +++ b/include/asm-xtensa/rwsem.h @@ -13,6 +13,10 @@ #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> |