]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/405: Fix build failure with GCC 12 (unrecognized opcode: `wrteei')
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 11 Jul 2022 14:19:31 +0000 (16:19 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 27 Jul 2022 11:36:06 +0000 (21:36 +1000)
commit91987c808deffa353246ba79a0c6671e102ca56e
tree013865978ab89d558bfe5e93939b4540c77b169b
parent41325cbe09650d6c4d8b2ac359dd365f2de65438
powerpc/405: Fix build failure with GCC 12 (unrecognized opcode: `wrteei')

Building ppc40x_defconfig leads to following error

  CC      arch/powerpc/kernel/process.o
{standard input}: Assembler messages:
{standard input}:626: Error: unrecognized opcode: `wrteei'

Add -mcpu=405 by default.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/d344a42c99061cfe10a28e00de4e31a1363f4251.1657549153.git.christophe.leroy@csgroup.eu
arch/powerpc/platforms/Kconfig.cputype