From: "Robert P. J. Day" For consistency with other architectures, warn about including directly. Signed-off-by: Robert P. J. Day Cc: Christian Zankel Signed-off-by: Andrew Morton --- include/asm-xtensa/rwsem.h | 4 ++++ 1 file changed, 4 insertions(+) diff -puN include/asm-xtensa/rwsem.h~xtensa-warn-about-including-asm-rwsemh-directly include/asm-xtensa/rwsem.h --- a/include/asm-xtensa/rwsem.h~xtensa-warn-about-including-asm-rwsemh-directly +++ a/include/asm-xtensa/rwsem.h @@ -13,6 +13,10 @@ #ifndef _XTENSA_RWSEM_H #define _XTENSA_RWSEM_H +#ifndef _LINUX_RWSEM_H +#error "Please don't include directly, use instead." +#endif + #include #include #include _