[ARM] 3815/1: headers_install support for ARM
authorRalph Siemsen <ralphs@netwinder.org>
Mon, 18 Sep 2006 15:28:50 +0000 (16:28 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 18 Sep 2006 15:28:50 +0000 (16:28 +0100)
Move kernel-only #includes into #ifdef __KERNEL__, so that
headers_install target can be used on ARM.

Signed-off-by: Ralph Siemsen <ralphs@netwinder.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/elf.h
include/asm-arm/page.h

index 71061ca5c5d0dc9266a6e7f72d09f3a0ac44ff4f..ae7baa6c73f7447e57f4ee9e0648c9d0f893c595 100644 (file)
@@ -8,7 +8,9 @@
 
 #include <asm/ptrace.h>
 #include <asm/user.h>
+#ifdef __KERNEL
 #include <asm/procinfo.h>
+#endif
 
 typedef unsigned long elf_greg_t;
 typedef unsigned long elf_freg_t[3];
index 63d12f0244c50d09ab60c89d56159196440fb024..b721270b9986c15d6dca566ec4d0dc65b6cb2e9d 100644 (file)
@@ -193,8 +193,8 @@ extern pmd_t *top_pmd;
 #define ARCH_SLAB_MINALIGN 8
 #endif
 
-#endif /* __KERNEL__ */
-
 #include <asm-generic/page.h>
 
+#endif /* __KERNEL__ */
+
 #endif