common: Add "ifndef __ASSEMBLY__" in asm/global_data.h
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
@@ -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
PATCH 1/1 common: Add "ifndef __ASSEMBLY__" in asm/global_data.h
Quoted 10 lines · Siew Chin Lim
Commit "common: Drop
asm/global_data.hfrom common header" addedasm/global_data.hintosecure.h. However,secure.hwill be included bypsci.S. Addingasm/global_data.hhas caused compilation failure inpcsi.S. Add "ifndef__ASSEMBLY__" inasm/global_data.h.Signed-off-by Siew Chin Lim <[email protected]>--- arch/arm/include/asm/global_data.h | 4 ++++ 1 file changed, 4 insertions(+)
PATCH 1/1 common: Add "ifndef __ASSEMBLY__" in asm/global_data.h
In reply to Siew Chin LimQuoted 7 lines · Siew Chin Lim
Commit "common: Drop
asm/global_data.hfrom common header" addedasm/global_data.hintosecure.h. However,secure.hwill be included bypsci.S. Addingasm/global_data.hhas caused compilation failure inpcsi.S. Add "ifndef__ASSEMBLY__" inasm/global_data.h.Signed-off-by Siew Chin Lim <[email protected]>Reviewed-by Simon Glass <[email protected]>
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>