Re: [PATCH] MIPS: Guard some macros with __ASSEMBLY__ in asm.h

From: Philippe Mathieu-Daudé
Date: Mon Apr 08 2024 - 02:34:23 EST


On 26/3/24 12:41, Jiaxun Yang wrote:
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: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Link: https://lore.kernel.org/linux-mips/8d78894-dd89-9f4d-52bb-1b873c50be9c@xxxxxxxxxxxxxx/
Signed-off-by: Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx>
---
arch/mips/include/asm/asm.h | 3 +++
1 file changed, 3 insertions(+)

Reviewed-by: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>