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

remove __KERNEL__ tests of unexported headers under asm-generic/

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Robert P. J. Day and committed by
Linus Torvalds
ae50884f 735643ee

-14
-4
include/asm-generic/bitops.h
··· 17 17 #include <asm-generic/bitops/fls64.h> 18 18 #include <asm-generic/bitops/find.h> 19 19 20 - #ifdef __KERNEL__ 21 - 22 20 #ifndef _LINUX_BITOPS_H 23 21 #error only <linux/bitops.h> can be included directly 24 22 #endif ··· 29 31 #include <asm-generic/bitops/ext2-non-atomic.h> 30 32 #include <asm-generic/bitops/ext2-atomic.h> 31 33 #include <asm-generic/bitops/minix.h> 32 - 33 - #endif /* __KERNEL__ */ 34 34 35 35 #endif /* _ASM_GENERIC_BITOPS_H */
-3
include/asm-generic/futex.h
··· 1 1 #ifndef _ASM_GENERIC_FUTEX_H 2 2 #define _ASM_GENERIC_FUTEX_H 3 3 4 - #ifdef __KERNEL__ 5 - 6 4 #include <linux/futex.h> 7 5 #include <linux/uaccess.h> 8 6 #include <asm/errno.h> ··· 53 55 return -ENOSYS; 54 56 } 55 57 56 - #endif 57 58 #endif
-2
include/asm-generic/memory_model.h
··· 1 1 #ifndef __ASM_MEMORY_MODEL_H 2 2 #define __ASM_MEMORY_MODEL_H 3 3 4 - #ifdef __KERNEL__ 5 4 #ifndef __ASSEMBLY__ 6 5 7 6 #if defined(CONFIG_FLATMEM) ··· 80 81 #endif /* CONFIG_OUT_OF_LINE_PFN_TO_PAGE */ 81 82 82 83 #endif /* __ASSEMBLY__ */ 83 - #endif /* __KERNEL__ */ 84 84 85 85 #endif
-2
include/asm-generic/page.h
··· 1 1 #ifndef _ASM_GENERIC_PAGE_H 2 2 #define _ASM_GENERIC_PAGE_H 3 3 4 - #ifdef __KERNEL__ 5 4 #ifndef __ASSEMBLY__ 6 5 7 6 #include <linux/compiler.h> ··· 20 21 } 21 22 22 23 #endif /* __ASSEMBLY__ */ 23 - #endif /* __KERNEL__ */ 24 24 25 25 #endif /* _ASM_GENERIC_PAGE_H */
-3
include/asm-generic/rtc.h
··· 12 12 #ifndef __ASM_RTC_H__ 13 13 #define __ASM_RTC_H__ 14 14 15 - #ifdef __KERNEL__ 16 - 17 15 #include <linux/mc146818rtc.h> 18 16 #include <linux/rtc.h> 19 17 #include <linux/bcd.h> ··· 211 213 return -EINVAL; 212 214 } 213 215 214 - #endif /* __KERNEL__ */ 215 216 #endif /* __ASM_RTC_H__ */