]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
remove __KERNEL__ tests of unexported headers under asm-generic/
authorRobert P. J. Day <rpjday@crashcourse.ca>
Wed, 30 Apr 2008 07:55:13 +0000 (00:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:54 +0000 (08:29 -0700)
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>
include/asm-generic/bitops.h
include/asm-generic/futex.h
include/asm-generic/memory_model.h
include/asm-generic/page.h
include/asm-generic/rtc.h

index 15e6f253dda4090622d93c0d688e4350da4411ad..c9f369c4bd7ed3d9fd2e65ff5ee65634d48cf77e 100644 (file)
@@ -17,8 +17,6 @@
 #include <asm-generic/bitops/fls64.h>
 #include <asm-generic/bitops/find.h>
 
-#ifdef __KERNEL__
-
 #ifndef _LINUX_BITOPS_H
 #error only <linux/bitops.h> can be included directly
 #endif
@@ -32,6 +30,4 @@
 #include <asm-generic/bitops/ext2-atomic.h>
 #include <asm-generic/bitops/minix.h>
 
-#endif /* __KERNEL__ */
-
 #endif /* _ASM_GENERIC_BITOPS_H */
index 67b60b917d88f07534fe06b32477762944e3e386..3c2344f48136d98351f92b6e9d678e29c052658c 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef _ASM_GENERIC_FUTEX_H
 #define _ASM_GENERIC_FUTEX_H
 
-#ifdef __KERNEL__
-
 #include <linux/futex.h>
 #include <linux/uaccess.h>
 #include <asm/errno.h>
@@ -56,4 +54,3 @@ futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval)
 }
 
 #endif
-#endif
index 52226e14bd7dba34b483a77ba22424e4241f8145..ae060c62aff1af5e5db8a4366b73d305b8f362db 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef __ASM_MEMORY_MODEL_H
 #define __ASM_MEMORY_MODEL_H
 
-#ifdef __KERNEL__
 #ifndef __ASSEMBLY__
 
 #if defined(CONFIG_FLATMEM)
@@ -81,6 +80,5 @@ extern unsigned long page_to_pfn(struct page *page);
 #endif /* CONFIG_OUT_OF_LINE_PFN_TO_PAGE */
 
 #endif /* __ASSEMBLY__ */
-#endif /* __KERNEL__ */
 
 #endif
index a96b5d986b6e8b1f05fb896adacae85b4243149c..14db733b8e68e7df3cb95bb685eb97cc0125a094 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef _ASM_GENERIC_PAGE_H
 #define _ASM_GENERIC_PAGE_H
 
-#ifdef __KERNEL__
 #ifndef __ASSEMBLY__
 
 #include <linux/compiler.h>
@@ -21,6 +20,5 @@ static __inline__ __attribute_const__ int get_order(unsigned long size)
 }
 
 #endif /* __ASSEMBLY__ */
-#endif /* __KERNEL__ */
 
 #endif /* _ASM_GENERIC_PAGE_H */
index dd1bed860e6487a3c325c2dfd66570efe8616066..be4af0029ac0b451cd89c91f239d3eca231a2e62 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef __ASM_RTC_H__
 #define __ASM_RTC_H__
 
-#ifdef __KERNEL__
-
 #include <linux/mc146818rtc.h>
 #include <linux/rtc.h>
 #include <linux/bcd.h>
@@ -213,5 +211,4 @@ static inline int set_rtc_pll(struct rtc_pll_info *pll)
        return -EINVAL;
 }
 
-#endif /* __KERNEL__ */
 #endif /* __ASM_RTC_H__ */