Skip to contentSkip to conversation

common: Add "ifndef __ASSEMBLY__" in asm/global_data.h

PATCH New Siew Chin Lim 3 participants 3 messages Feb 23, 2021 – Feb 25, 2021 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 common: Add "ifndef __ASSEMBLY__" in asm/global_data.h

Commit "common: Drop asm/global_data.h from common header" added asm/global_data.h into secure.h. However, secure.h will be included by psci.S. Adding asm/global_data.h has caused compilation failure in pcsi.S. Add "ifndef __ASSEMBLY__" in asm/global_data.h.

---
 arch/arm/include/asm/global_data.h | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/include/asm/global_data.h +4 -0
index 5a935d34e2..fba655f3b9 100644
@@ -7,6 +7,8 @@
 #ifndef	__ASM_GBL_DATA_H
 #define __ASM_GBL_DATA_H
 
+#ifndef __ASSEMBLY__
+
 #include <asm/types.h>
 #include <linux/types.h>
 
@@ -125,4 +127,6 @@ static inline void set_gd(volatile gd_t *gd_ptr)
 #endif
 }
 
+#endif /* __ASSEMBLY__ */
+
 #endif /* __ASM_GBL_DATA_H */
Signature · 1 line
2.13.0
#1 lore raw

PATCH 1/1 common: Add "ifndef __ASSEMBLY__" in asm/global_data.h

Quoted 10 lines · Siew Chin Lim

Commit "common: Drop asm/global_data.h from common header" added asm/global_data.h into secure.h. However, secure.h will be included by psci.S. Adding asm/global_data.h has caused compilation failure in pcsi.S. Add "ifndef __ASSEMBLY__" in asm/global_data.h.

---
 arch/arm/include/asm/global_data.h | 4 ++++
 1 file changed, 4 insertions(+)
#2 lore raw

PATCH 1/1 common: Add "ifndef __ASSEMBLY__" in asm/global_data.h

In reply to Siew Chin Lim
Quoted 7 lines · Siew Chin Lim

Commit "common: Drop asm/global_data.h from common header" added asm/global_data.h into secure.h. However, secure.h will be included by psci.S. Adding asm/global_data.h has caused compilation failure in pcsi.S. Add "ifndef __ASSEMBLY__" in asm/global_data.h.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210225/27f89997/attachment.sig>