MIPS: CPS: Fix r1 .set mt assembler warning
authorJames Hogan <jhogan@kernel.org>
Tue, 14 Nov 2017 12:01:20 +0000 (12:01 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 12 Dec 2017 16:19:56 +0000 (17:19 +0100)
commit17278a91e04f858155d54bee5528ba4fbcec6f87
treec52d8e7e91b681ab7fbca52df06d4e74e55da3b1
parent50c4c4e268a2d7a3e58ebb698ac74da0de40ae36
MIPS: CPS: Fix r1 .set mt assembler warning

MIPS CPS has a build warning on kernels configured for MIPS32R1 or
MIPS64R1, due to the use of .set mt without a prior .set mips{32,64}r2:

arch/mips/kernel/cps-vec.S Assembler messages:
arch/mips/kernel/cps-vec.S:238: Warning: the `mt' extension requires MIPS32 revision 2 or greater

Add .set MIPS_ISA_LEVEL_RAW before .set mt to silence the warning.

Fixes: 245a7868d2f2 ("MIPS: smp-cps: rework core/VPE initialisation")
Signed-off-by: James Hogan <jhogan@kernel.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: James Hogan <james.hogan@mips.com>
Cc: James Hogan <jhogan@kernel.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17699/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cps-vec.S