On Mon, Sep 13, 2021 at 10:34:15PM +0100, Paul Cercueil wrote: > 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@xxxxxxxxxxxxxxx> > --- > > Notes: > v2: Removed commented undef line > > arch/mips/include/asm/ginvt.h | 11 +- > .../asm/mach-loongson64/loongson_regs.h | 12 ++ > arch/mips/include/asm/mipsregs.h | 190 +++++++++++------- > arch/mips/include/asm/msa.h | 34 +++- > 4 files changed, 155 insertions(+), 92 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]