[PATCH 3/5] arm64: Fix include header order in vmlinux.lds.S
Geoff Levand
geoff at infradead.org
Thu Dec 12 15:39:46 EST 2013
asm-generic/vmlinux.lds.h should be included after the arch
specific headers so that the arch headers can override the
generic macro defs in asm-generic/vmlinux.lds.h.
Fixes preprosessor redefined warnings when adding arch specific
macros.
Signed-off-by: Geoff Levand <geoff at infradead.org> for Huawei, Linaro
---
arch/arm64/kernel/vmlinux.lds.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S
index 3072c41..6563b64 100644
--- a/arch/arm64/kernel/vmlinux.lds.S
+++ b/arch/arm64/kernel/vmlinux.lds.S
@@ -4,10 +4,10 @@
* Written by Martin Mares <mj at atrey.karlin.mff.cuni.cz>
*/
-#include <asm-generic/vmlinux.lds.h>
#include <asm/thread_info.h>
#include <asm/memory.h>
#include <asm/page.h>
+#include <asm-generic/vmlinux.lds.h>
#define ARM_EXIT_KEEP(x)
#define ARM_EXIT_DISCARD(x) x
--
1.8.1.2
More information about the linux-arm-kernel
mailing list