Files
linux/arch/powerpc/include/asm
Michael Ellerman 816ae3cf3d powerpc/fsl: Fix mfpmr build errors with newer binutils
[ Upstream commit 5f491356b7149564ab22323ccce79c8d595bfd0c ]

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:28:24 +02:00
..
2015-05-28 15:31:53 +02:00
2023-02-12 22:11:56 +11:00
2021-03-24 14:09:29 +11:00
2022-06-29 19:37:07 +10:00
2023-08-18 10:12:35 -07:00
2023-08-16 23:54:48 +10:00
2022-09-26 22:47:37 +10:00
2022-07-27 21:36:05 +10:00
2023-06-21 15:13:57 +10:00
2021-02-09 01:09:44 +11:00
2022-05-08 22:15:40 +10:00
2023-08-16 23:54:48 +10:00
2022-12-07 20:14:49 +11:00
2018-05-25 12:04:43 +10:00
2023-08-24 22:33:16 +10:00
2021-12-09 22:41:21 +11:00
2022-09-28 19:22:09 +10:00
2018-07-30 22:48:21 +10:00
2023-08-02 22:49:43 +10:00
2022-07-27 21:36:05 +10:00
2022-01-30 21:17:00 -05:00