diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-06-07 22:56:31 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-06-07 22:56:31 -0400 |
commit | 711be60522829beb82807de2867e56513934ebec (patch) | |
tree | 519231a44fa5c2046c5e01035e6333ca9403ce1a /include | |
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')
-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 4931ba817d73..1987f3ea7f1b 100644 --- a/include/asm-sh/rwsem.h +++ b/include/asm-sh/rwsem.h | |||
@@ -1,11 +1,15 @@ | |||
1 | /* | 1 | /* |
2 | * include/asm-ppc/rwsem.h: R/W semaphores for SH using the stuff | 2 | * include/asm-sh/rwsem.h: R/W semaphores for SH using the stuff |
3 | * in lib/rwsem.c. | 3 | * in lib/rwsem.c. |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #ifndef _ASM_SH_RWSEM_H | 6 | #ifndef _ASM_SH_RWSEM_H |
7 | #define _ASM_SH_RWSEM_H | 7 | #define _ASM_SH_RWSEM_H |
8 | 8 | ||
9 | #ifndef _LINUX_RWSEM_H | ||
10 | #error "please don't include asm/rwsem.h directly, use linux/rwsem.h instead" | ||
11 | #endif | ||
12 | |||
9 | #ifdef __KERNEL__ | 13 | #ifdef __KERNEL__ |
10 | #include <linux/list.h> | 14 | #include <linux/list.h> |
11 | #include <linux/spinlock.h> | 15 | #include <linux/spinlock.h> |