diff options
-rw-r--r-- | include/asm-generic/bitops.h | 4 | ||||
-rw-r--r-- | include/asm-generic/futex.h | 3 | ||||
-rw-r--r-- | include/asm-generic/memory_model.h | 2 | ||||
-rw-r--r-- | include/asm-generic/page.h | 2 | ||||
-rw-r--r-- | include/asm-generic/rtc.h | 3 |
5 files changed, 0 insertions, 14 deletions
diff --git a/include/asm-generic/bitops.h b/include/asm-generic/bitops.h index 15e6f253dda4..c9f369c4bd7e 100644 --- a/include/asm-generic/bitops.h +++ b/include/asm-generic/bitops.h | |||
@@ -17,8 +17,6 @@ | |||
17 | #include <asm-generic/bitops/fls64.h> | 17 | #include <asm-generic/bitops/fls64.h> |
18 | #include <asm-generic/bitops/find.h> | 18 | #include <asm-generic/bitops/find.h> |
19 | 19 | ||
20 | #ifdef __KERNEL__ | ||
21 | |||
22 | #ifndef _LINUX_BITOPS_H | 20 | #ifndef _LINUX_BITOPS_H |
23 | #error only <linux/bitops.h> can be included directly | 21 | #error only <linux/bitops.h> can be included directly |
24 | #endif | 22 | #endif |
@@ -32,6 +30,4 @@ | |||
32 | #include <asm-generic/bitops/ext2-atomic.h> | 30 | #include <asm-generic/bitops/ext2-atomic.h> |
33 | #include <asm-generic/bitops/minix.h> | 31 | #include <asm-generic/bitops/minix.h> |
34 | 32 | ||
35 | #endif /* __KERNEL__ */ | ||
36 | |||
37 | #endif /* _ASM_GENERIC_BITOPS_H */ | 33 | #endif /* _ASM_GENERIC_BITOPS_H */ |
diff --git a/include/asm-generic/futex.h b/include/asm-generic/futex.h index 67b60b917d88..3c2344f48136 100644 --- a/include/asm-generic/futex.h +++ b/include/asm-generic/futex.h | |||
@@ -1,8 +1,6 @@ | |||
1 | #ifndef _ASM_GENERIC_FUTEX_H | 1 | #ifndef _ASM_GENERIC_FUTEX_H |
2 | #define _ASM_GENERIC_FUTEX_H | 2 | #define _ASM_GENERIC_FUTEX_H |
3 | 3 | ||
4 | #ifdef __KERNEL__ | ||
5 | |||
6 | #include <linux/futex.h> | 4 | #include <linux/futex.h> |
7 | #include <linux/uaccess.h> | 5 | #include <linux/uaccess.h> |
8 | #include <asm/errno.h> | 6 | #include <asm/errno.h> |
@@ -56,4 +54,3 @@ futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval) | |||
56 | } | 54 | } |
57 | 55 | ||
58 | #endif | 56 | #endif |
59 | #endif | ||
diff --git a/include/asm-generic/memory_model.h b/include/asm-generic/memory_model.h index 52226e14bd7d..ae060c62aff1 100644 --- a/include/asm-generic/memory_model.h +++ b/include/asm-generic/memory_model.h | |||
@@ -1,7 +1,6 @@ | |||
1 | #ifndef __ASM_MEMORY_MODEL_H | 1 | #ifndef __ASM_MEMORY_MODEL_H |
2 | #define __ASM_MEMORY_MODEL_H | 2 | #define __ASM_MEMORY_MODEL_H |
3 | 3 | ||
4 | #ifdef __KERNEL__ | ||
5 | #ifndef __ASSEMBLY__ | 4 | #ifndef __ASSEMBLY__ |
6 | 5 | ||
7 | #if defined(CONFIG_FLATMEM) | 6 | #if defined(CONFIG_FLATMEM) |
@@ -81,6 +80,5 @@ extern unsigned long page_to_pfn(struct page *page); | |||
81 | #endif /* CONFIG_OUT_OF_LINE_PFN_TO_PAGE */ | 80 | #endif /* CONFIG_OUT_OF_LINE_PFN_TO_PAGE */ |
82 | 81 | ||
83 | #endif /* __ASSEMBLY__ */ | 82 | #endif /* __ASSEMBLY__ */ |
84 | #endif /* __KERNEL__ */ | ||
85 | 83 | ||
86 | #endif | 84 | #endif |
diff --git a/include/asm-generic/page.h b/include/asm-generic/page.h index a96b5d986b6e..14db733b8e68 100644 --- a/include/asm-generic/page.h +++ b/include/asm-generic/page.h | |||
@@ -1,7 +1,6 @@ | |||
1 | #ifndef _ASM_GENERIC_PAGE_H | 1 | #ifndef _ASM_GENERIC_PAGE_H |
2 | #define _ASM_GENERIC_PAGE_H | 2 | #define _ASM_GENERIC_PAGE_H |
3 | 3 | ||
4 | #ifdef __KERNEL__ | ||
5 | #ifndef __ASSEMBLY__ | 4 | #ifndef __ASSEMBLY__ |
6 | 5 | ||
7 | #include <linux/compiler.h> | 6 | #include <linux/compiler.h> |
@@ -21,6 +20,5 @@ static __inline__ __attribute_const__ int get_order(unsigned long size) | |||
21 | } | 20 | } |
22 | 21 | ||
23 | #endif /* __ASSEMBLY__ */ | 22 | #endif /* __ASSEMBLY__ */ |
24 | #endif /* __KERNEL__ */ | ||
25 | 23 | ||
26 | #endif /* _ASM_GENERIC_PAGE_H */ | 24 | #endif /* _ASM_GENERIC_PAGE_H */ |
diff --git a/include/asm-generic/rtc.h b/include/asm-generic/rtc.h index dd1bed860e64..be4af0029ac0 100644 --- a/include/asm-generic/rtc.h +++ b/include/asm-generic/rtc.h | |||
@@ -12,8 +12,6 @@ | |||
12 | #ifndef __ASM_RTC_H__ | 12 | #ifndef __ASM_RTC_H__ |
13 | #define __ASM_RTC_H__ | 13 | #define __ASM_RTC_H__ |
14 | 14 | ||
15 | #ifdef __KERNEL__ | ||
16 | |||
17 | #include <linux/mc146818rtc.h> | 15 | #include <linux/mc146818rtc.h> |
18 | #include <linux/rtc.h> | 16 | #include <linux/rtc.h> |
19 | #include <linux/bcd.h> | 17 | #include <linux/bcd.h> |
@@ -213,5 +211,4 @@ static inline int set_rtc_pll(struct rtc_pll_info *pll) | |||
213 | return -EINVAL; | 211 | return -EINVAL; |
214 | } | 212 | } |
215 | 213 | ||
216 | #endif /* __KERNEL__ */ | ||
217 | #endif /* __ASM_RTC_H__ */ | 214 | #endif /* __ASM_RTC_H__ */ |