summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Siemsen <ralphs@netwinder.org>2006-09-18 17:28:50 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-09-18 17:28:50 +0200
commite40b1074af46d53740320f88dfffd9fb2f78bdf3 (patch)
treea3809ce5543118430361ed3fcaef65619bdaa7f2
parent[ARM] 3794/1: S3C24XX: do not defined set_irq_wake when no CONFIG_PM (diff)
downloadlinux-e40b1074af46d53740320f88dfffd9fb2f78bdf3.tar.xz
linux-e40b1074af46d53740320f88dfffd9fb2f78bdf3.zip
[ARM] 3815/1: headers_install support for ARM
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>
-rw-r--r--include/asm-arm/elf.h2
-rw-r--r--include/asm-arm/page.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-arm/elf.h b/include/asm-arm/elf.h
index 71061ca5c5d0..ae7baa6c73f7 100644
--- a/include/asm-arm/elf.h
+++ b/include/asm-arm/elf.h
@@ -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];
diff --git a/include/asm-arm/page.h b/include/asm-arm/page.h
index 63d12f0244c5..b721270b9986 100644
--- a/include/asm-arm/page.h
+++ b/include/asm-arm/page.h
@@ -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