From 0624517d809b1cf53c977335c9bda4c216cbddee Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Thu, 18 Oct 2007 23:40:26 -0700 Subject: forbid asm/bitops.h direct inclusion forbid asm/bitops.h direct inclusion Because of compile errors that may occur after bit changes if asm/bitops.h is included directly without e.g. linux/kernel.h which includes linux/bitops.h, forbid direct inclusion of asm/bitops.h. Thanks to Adrian Bunk. Signed-off-by: Jiri Slaby Cc: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/asm-h8300/bitops.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/asm-h8300') diff --git a/include/asm-h8300/bitops.h b/include/asm-h8300/bitops.h index e64ad315656..cb18e3b0aa9 100644 --- a/include/asm-h8300/bitops.h +++ b/include/asm-h8300/bitops.h @@ -10,6 +10,11 @@ #include #ifdef __KERNEL__ + +#ifndef _LINUX_BITOPS_H +#error only can be included directly +#endif + /* * Function prototypes to keep gcc -Wall happy */ -- cgit v1.2.3