diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-06-08 11:56:31 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-06-08 11:56:31 +0900 |
commit | 711be60522829beb82807de2867e56513934ebec (patch) | |
tree | 519231a44fa5c2046c5e01035e6333ca9403ce1a /include/asm-sh | |
parent | b9601c5e59dd25693345558a301e833741bf5874 (diff) |
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.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-sh/rwsem.h b/include/asm-sh/rwsem.h index 4931ba817d7..1987f3ea7f1 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> |