Commit a1b7508c authored by Jiaxun Yang's avatar Jiaxun Yang Committed by Thomas Bogendoerfer

MIPS: Guard some macros with __ASSEMBLY__ in asm.h

There are some assembly macros with very generic naming
being defined asm.h. They are clashing with other macros
from C code.

Guard them with __ASSEMBLY__ to prevent futher clashes.
Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/linux-mips/8d78894-dd89-9f4d-52bb-1b873c50be9c@linux-m68k.org/Signed-off-by: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent b796d046
......@@ -37,6 +37,7 @@
#define CFI_SECTIONS
#endif
#ifdef __ASSEMBLY__
/*
* LEAF - declare leaf routine
*/
......@@ -122,6 +123,8 @@ symbol = value
#define ASM_PRINT(string)
#endif
#endif /* __ASSEMBLY__ */
/*
* Stack alignment
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment