Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Robert P. J. Day and committed by
Paul Mundt
711be605 b9601c5e

+5 -1
+5 -1
include/asm-sh/rwsem.h
··· 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 3 * in lib/rwsem.c. 4 4 */ 5 5 6 6 #ifndef _ASM_SH_RWSEM_H 7 7 #define _ASM_SH_RWSEM_H 8 + 9 + #ifndef _LINUX_RWSEM_H 10 + #error "please don't include asm/rwsem.h directly, use linux/rwsem.h instead" 11 + #endif 8 12 9 13 #ifdef __KERNEL__ 10 14 #include <linux/list.h>