]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Avoid macro redefinitions
authorPaul Cercueil <paul@crapouillou.net>
Mon, 13 Sep 2021 21:34:15 +0000 (22:34 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 23 Sep 2021 09:23:35 +0000 (11:23 +0200)
commita79ce8ea31aa497392d9881e90e00a933b1b4afe
tree2e410eb7552601c13b9f8762f66304cfde66d7c7
parent334e4d7af6422971846062f1aa73c7a1850883f3
MIPS: Avoid macro redefinitions

To be able to compile the kernel with LTO, the assembler macros cannot
be declared in the global scope, or the compiler will complain about
redefined macros.

Update the code so that macros are defined then undefined when they are
used.

Note that virt support was added in 2.24 and xpa in 2.25. So we still
need the TOOLCHAIN defines for them.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/ginvt.h
arch/mips/include/asm/mach-loongson64/loongson_regs.h
arch/mips/include/asm/mipsregs.h
arch/mips/include/asm/msa.h