]> Git Repo - J-u-boot.git/commitdiff
common: Add "ifndef __ASSEMBLY__" in asm/global_data.h
authorSiew Chin Lim <[email protected]>
Tue, 23 Feb 2021 06:34:37 +0000 (14:34 +0800)
committerTom Rini <[email protected]>
Wed, 24 Feb 2021 21:51:49 +0000 (16:51 -0500)
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.

Signed-off-by: Siew Chin Lim <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
arch/arm/include/asm/global_data.h

index 5a935d34e20e4596fef4f43b54f488a3e4d632b6..fba655f3b934bee68057a8db7438afbb3b579c07 100644 (file)
@@ -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 */
This page took 0.036274 seconds and 4 git commands to generate.