From: Robert P. J. Day Date: Fri, 8 Jun 2007 02:56:31 +0000 (+0900) Subject: sh: Warn against direct inclusion of . X-Git-Tag: v2.6.23-rc1~785^2~35 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=711be60522829beb82807de2867e56513934ebec;p=linux-2.6-omap-h63xx.git sh: Warn against direct inclusion of . Signed-off-by: Robert P. J. Day Signed-off-by: Paul Mundt --- 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 #include