Skip to contentSkip to conversation

arch/arm/lib/bootm-fdt.c: Guard the include of <asm/armv7.h>

PATCH New Tom Rini 1 participant 1 message May 14, 2015 Arm (32-bit)

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 arch/arm/lib/bootm-fdt.c: Guard the include of <asm/armv7.h>

With d6b72da0 we started including this file unconditionally. This isn't allowed in a file that we also use on armv8. This will get cleaned up a bit better once we really start using these same features (and have similar fdt updates needed) on armv8.

---
 arch/arm/lib/bootm-fdt.c |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/lib/bootm-fdt.c +2 -0
index 0eb10a8..7677358 100644
@@ -17,7 +17,9 @@
 
 #include <common.h>
 #include <fdt_support.h>
+#ifdef CONFIG_ARMV7_NONSEC
 #include <asm/armv7.h>
+#endif
 #include <asm/psci.h>
 
 DECLARE_GLOBAL_DATA_PTR;
Signature · 1 line
1.7.9.5