MIPS: Guard some macros with __ASSEMBLY__ in asm.h
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Tue, 26 Mar 2024 11:41:45 +0000 (11:41 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 15 Apr 2024 08:22:09 +0000 (10:22 +0200)
commita1b7508cef6208ad06377d2aa05b0f89f7d6b516
tree87637d0a05a69e97db81ead46bda361ae8b183ba
parentb796d046433b2042577d8d6c9a5d366e39095c30
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: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/linux-mips/8d78894-dd89-9f4d-52bb-1b873c50be9c@linux-m68k.org/
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/asm.h