Files
linux-stable-mirror/arch/powerpc/include/asm
Michael Ellerman 33a4aa08d5 powerpc/fsl: Fix mfpmr build errors with newer binutils
[ Upstream commit 5f491356b7 ]

Binutils 2.38 complains about the use of mfpmr when building
ppc6xx_defconfig:

    CC      arch/powerpc/kernel/pmc.o
  {standard input}: Assembler messages:
  {standard input}:45: Error: unrecognized opcode: `mfpmr'
  {standard input}:56: Error: unrecognized opcode: `mtpmr'

This is because by default the kernel is built with -mcpu=powerpc, and
the mt/mfpmr instructions are not defined.

It can be avoided by enabling CONFIG_E300C3_CPU, but just adding that to
the defconfig will leave open the possibility of randconfig failures.

So add machine directives around the mt/mfpmr instructions to tell
binutils how to assemble them.

Cc: stable@vger.kernel.org
Reported-by: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240229122521.762431-3-mpe@ellerman.id.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-03 15:19:29 +02:00
..
2023-03-17 08:50:30 +01:00
2022-06-29 19:37:07 +10:00
2022-06-29 16:58:27 +10:00
2022-09-26 22:47:37 +10:00
2022-07-27 21:36:05 +10:00
2022-09-26 23:00:14 +10:00
2022-09-26 23:00:13 +10:00
2022-05-08 22:15:40 +10:00
2022-09-28 19:22:09 +10:00
2022-07-27 21:36:05 +10:00
2022-01-30 21:17:00 -05:00