Messages in this thread Patch in this message | | | From | Akinobu Mita <> | Subject | [PATCH 5/5] bitops: forbid asm-generic/bitops/le.h direct inclusion | Date | Fri, 8 Oct 2010 19:03:13 +0900 |
| |
asm-generic/bitops/le.h is only intended to be included directly from asm-generic/bitops/ext2-non-atomic.h or asm-generic/bitops/minix-le.h which implements generic ext2 or minix bit operations.
But there were some source files that include it directly. (those are already fixed by other commits)
This forbids asm-generic/bitops/le.h direct inclusion in the future.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> --- include/asm-generic/bitops/le.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/asm-generic/bitops/le.h b/include/asm-generic/bitops/le.h index db2be81..f8d0225 100644 --- a/include/asm-generic/bitops/le.h +++ b/include/asm-generic/bitops/le.h @@ -1,6 +1,11 @@ #ifndef _ASM_GENERIC_BITOPS_LE_H_ #define _ASM_GENERIC_BITOPS_LE_H_ +#if !defined(_ASM_GENERIC_BITOPS_MINIX_LE_H_) && \ + !defined(_ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_) +#error only minix-le.h and ext2-non-atomic.h can be included directly +#endif + #include <asm/types.h> #include <asm/byteorder.h> -- 1.7.1.231.gd0b16
| |