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

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>

authored by

Robert P. J. Day and committed by
Chris Zankel
14ac12de 43096597

+4
+4
include/asm-xtensa/rwsem.h
··· 13 13 #ifndef _XTENSA_RWSEM_H 14 14 #define _XTENSA_RWSEM_H 15 15 16 + #ifndef _LINUX_RWSEM_H 17 + #error "Please don't include <asm/rwsem.h> directly, use <linux/rwsem.h> instead." 18 + #endif 19 + 16 20 #include <linux/list.h> 17 21 #include <linux/spinlock.h> 18 22 #include <asm/atomic.h>