Use __ASSEMBLY__ as the assembly macros
authorSimon Glass <sjg@chromium.org>
Sun, 10 May 2020 17:40:12 +0000 (11:40 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 19 May 2020 01:19:23 +0000 (21:19 -0400)
Some places use __ASSEMBLER__ instead which does not work since the
Makefile does not define it. Fix them.

Signed-off-by: Simon Glass <sjg@chromium.org>
16 files changed:
arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h
arch/arm/include/asm/arch-mx27/regs-rtc.h
arch/arm/include/asm/arch-mx5/imx-regs.h
arch/arm/include/asm/arch-mx6/imx-regs.h
arch/arm/include/asm/arch-mx7/imx-regs.h
arch/arm/include/asm/arch-s32v234/imx-regs.h
arch/arm/include/asm/arch-vf610/imx-regs.h
arch/arm/mach-socfpga/include/mach/clock_manager.h
arch/arm/mach-socfpga/include/mach/clock_manager_arria10.h
arch/arm/mach-socfpga/include/mach/clock_manager_gen5.h
arch/arm/mach-socfpga/include/mach/sdram_arria10.h
arch/arm/mach-stm32mp/include/mach/stm32.h
arch/x86/include/asm/mtrr.h
arch/x86/include/asm/sipi.h
include/atf_common.h
include/elf.h

index c2fbc23b112ae8b78107e74ee68aa0bfad938354..baa9fa8529cdb915696103bb4d75649f3d792529 100644 (file)
@@ -589,5 +589,5 @@ struct ccsr_serdes {
        u8 res5[0x19fc - 0xa00];
 };
 
-#endif /*__ASSEMBLY__*/
+#endif /*__ASSEMBLY__ */
 #endif /* __ARCH_FSL_LSCH3_IMMAP_H_ */
index d373ab158393af3e10089bd8961a9555f0811397..8434f4c1cb1a214bc2191f081e5419fb28c6a69e 100644 (file)
@@ -21,6 +21,6 @@ struct rtc_regs {
        u32 dayr;
        u32 dayalarm;
 };
-#endif /* __ASSEMBLY__*/
+#endif /* __ASSEMBLY__ */
 
 #endif /* __MX28_REGS_RTC_H__ */
index fbb6e599b6d29c490cc506832b5f8c9c86a79695..3d1cc6832288f34f4a4e1d2b06f67b83fd3df8ff 100644 (file)
@@ -557,6 +557,6 @@ struct pwm_regs {
        u32     cnr;
 };
 
-#endif /* __ASSEMBLER__*/
+#endif /* __ASSEMBLY__ */
 
 #endif                         /* __ASM_ARCH_MX5_IMX_REGS_H__ */
index 4f01b20aedf8565d1b38ad2552b951617ecbe8d0..5b41a7a4b8b13d696e77907fbcdc7a040aac8816 100644 (file)
@@ -1003,5 +1003,5 @@ struct pwm_regs {
  */
 #define        is_boot_from_usb(void) (!(readl(USB_PHY0_BASE_ADDR) & (1<<20)))
 
-#endif /* __ASSEMBLER__*/
+#endif /* __ASSEMBLY__ */
 #endif /* __ASM_ARCH_MX6_IMX_REGS_H__ */
index 63365140072f4ff92c29b17e405b9cc17fb2226a..7b23abbc7ebefe6f121810819b52f1656cadc0ac 100644 (file)
@@ -1223,5 +1223,5 @@ struct bootrom_sw_info {
        u32 reserved_3[3];
 };
 
-#endif /* __ASSEMBLER__*/
+#endif /* __ASSEMBLY__ */
 #endif /* __ASM_ARCH_MX7_IMX_REGS_H__ */
index 9a779cce965075cd848fca74bf22df45a6a85fa1..1472a43f1bc20a8f01bd125ae702e8c53b672ae0 100644 (file)
@@ -323,6 +323,6 @@ struct mscm_ir {
        u32 ipcie[4];           /* Interconnect Parity Checking Injection Enable Register       */
 };
 
-#endif /* __ASSEMBLER__ */
+#endif /* __ASSEMBLY__ */
 
 #endif /* __ASM_ARCH_IMX_REGS_H__ */
index ae0a187c4db85e7132df9e0219bc1e1a9c985982..03def8e3c54d7a36f60a41158b411936af04cd52 100644 (file)
@@ -474,6 +474,6 @@ struct mscm {
        u32 cpxcfg3;
 };
 
-#endif /* __ASSEMBLER__*/
+#endif /* __ASSEMBLY__ */
 
 #endif /* __ASM_ARCH_IMX_REGS_H__ */
index c6830582a5ac99b849aa1db740ed9e1d6ce8ef02..1f734bcd65ef5df979e65602cc0ec5244b02b01d 100644 (file)
@@ -8,7 +8,7 @@
 
 phys_addr_t socfpga_get_clkmgr_addr(void);
 
-#ifndef __ASSEMBLER__
+#ifndef __ASSEMBLY__
 void cm_wait_for_lock(u32 mask);
 int cm_wait_for_fsm(void);
 void cm_print_clock_quick_summary(void);
index 23f280df1b915149fe5dca9fb961655560b7966a..8d62d75432ba0eeeb76fa89ff5d74248bf8d9b7d 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef CLOCK_MANAGER_ARRIA10
 #define CLOCK_MANAGER_ARRIA10
 
-#ifndef __ASSEMBLER__
+#ifndef __ASSEMBLY__
 
 /* Clock manager group */
 #define CLKMGR_A10_CTRL                                0x00
@@ -69,7 +69,7 @@ unsigned long cm_get_mpu_clk_hz(void);
 
 unsigned int cm_get_qspi_controller_clk_hz(void);
 
-#endif /* __ASSEMBLER__ */
+#endif /* __ASSEMBLY__ */
 
 #define LOCKED_MASK    (CLKMGR_CLKMGR_STAT_MAINPLLLOCKED_SET_MSK | \
                         CLKMGR_CLKMGR_STAT_PERPLLLOCKED_SET_MSK)
index 08655094ca3ac6141834609b4f538d566fb2bd4d..fc6d2301561273316a00bab2a03fd99299249e44 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef _CLOCK_MANAGER_GEN5_H_
 #define _CLOCK_MANAGER_GEN5_H_
 
-#ifndef __ASSEMBLER__
+#ifndef __ASSEMBLY__
 
 struct cm_config {
        /* main group */
@@ -107,7 +107,7 @@ const unsigned int cm_get_f2s_sdr_ref_clk_hz(void);
 /* Clock configuration accessors */
 int cm_basic_init(const struct cm_config * const cfg);
 const struct cm_config * const cm_get_default_config(void);
-#endif /* __ASSEMBLER__ */
+#endif /* __ASSEMBLY__ */
 
 #define LOCKED_MASK \
        (CLKMGR_INTER_SDRPLLLOCKED_MASK  | \
index 25b82fb285838b0dd79e37639826ce3559c90b04..f2773883fd1a0196aa51cd44ca61cfee28300ccf 100644 (file)
@@ -205,7 +205,7 @@ struct socfpga_io48_mmr {
        u32 niosreserve2;
 };
 
-#endif /*__ASSEMBLY__*/
+#endif /*__ASSEMBLY__ */
 
 #define IO48_MMR_CTRLCFG0_DB2_BURST_LENGTH_MASK                0x1F000000
 #define IO48_MMR_CTRLCFG0_DB2_BURST_LENGTH_SHIFT       24
index 242bacc50b0a96ee09bf1e940c4a6f6d09e5aba4..efa5ac335e797eb396c2096cbe0f41f53278c637 100644 (file)
@@ -133,5 +133,5 @@ enum forced_boot_mode {
 #define BSEC_OTP_MAC   57
 #define BSEC_OTP_BOARD 59
 
-#endif /* __ASSEMBLY__*/
+#endif /* __ASSEMBLY__ */
 #endif /* _MACH_STM32_H_ */
index 672617256e9bdea94ed1a5be0aed755f6fdb77f9..212a699c1b2cca89d4712a6d9d192aacde811b9f 100644 (file)
@@ -57,7 +57,7 @@
 
 #define MTRR_FIX_TYPE(t)       ((t << 24) | (t << 16) | (t << 8) | t)
 
-#if !defined(__ASSEMBLER__)
+#if !defined(__ASSEMBLY__)
 
 /**
  * Information about the previous MTRR state, set up by mtrr_open()
index 1ab6c2874a0357591bcf603c74fe32c03ea6bff2..24834225287edee878545612c9048b033b2de7a9 100644 (file)
@@ -10,7 +10,7 @@
 #define AP_DEFAULT_BASE 0x30000
 #define AP_DEFAULT_SIZE 0x10000
 
-#ifndef __ASSEMBLER__
+#ifndef __ASSEMBLY__
 
 /**
  * struct sipi_params_16bit - 16-bit SIPI entry-point parameters
@@ -81,6 +81,6 @@ void ap_start(void);
 extern char sipi_params_16bit[];
 extern char sipi_params[];
 
-#endif /* __ASSEMBLER__ */
+#endif /* __ASSEMBLY__ */
 
 #endif
index 3a7d40e5f091d4cbe15945d4995623fd26e48336..fd5454c55b4b83234a0e53bcbe8eadee1f1fabcd 100644 (file)
@@ -177,6 +177,6 @@ struct bl2_to_bl31_params_mem {
        struct entry_point_info bl31_ep_info;
 };
 
-#endif /*__ASSEMBLY__*/
+#endif /*__ASSEMBLY__ */
 
 #endif /* __BL_COMMON_H__ */
index e7c51986df84d986e1b1ac4dd70cd29d4574b77d..b04e746d6176bd37abc30fe775d4dcf97742e886 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef _ELF_H
 #define _ELF_H
 
-#ifndef __ASSEMBLER__
+#ifndef __ASSEMBLY__
 #include "compiler.h"
 
 /* This version doesn't work for 64-bit ABIs - Erik */
@@ -690,7 +690,7 @@ unsigned long elf_hash(const unsigned char *name);
 #define R_RISCV_64             2
 #define R_RISCV_RELATIVE       3
 
-#ifndef __ASSEMBLER__
+#ifndef __ASSEMBLY__
 int valid_elf_image(unsigned long addr);
 unsigned long load_elf64_image_phdr(unsigned long addr);
 unsigned long load_elf64_image_shdr(unsigned long addr);