projects/linux·commit e40b1074

[ARM] 3815/1: headers_install support for ARM

e40b1074 · Ralph Siemsen <[email protected]> · 2006-09-18 16:28:50 +01:00

Move kernel-only #includes into #ifdef __KERNEL__, so that
headers_install target can be used on ARM.

Signed-off-by: Ralph Siemsen <[email protected]>
Signed-off-by: Russell King <[email protected]>
Commit
e40b1074af46d53740320f88dfffd9fb2f78bdf3
Parents
a9c3685b

Changes

2 files changed · +4 −2

FileStatusAddDelContent
include/asm-arm/elf.hmodified+2−0View file
include/asm-arm/page.hmodified+2−2View file

include/asm-arm/elf.h

View file
diff --git a/include/asm-arm/elf.h b/include/asm-arm/elf.h
index 71061ca..ae7baa6 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];

include/asm-arm/page.h

View file
diff --git a/include/asm-arm/page.h b/include/asm-arm/page.h
index 63d12f0..b721270 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