diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2024-02-29 23:25:19 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-03-03 23:05:21 +1100 |
commit | 5f491356b7149564ab22323ccce79c8d595bfd0c (patch) | |
tree | e0a60e8b89722ff4b0bc2a933f8fdbacb62fa8d4 /arch/mips/pci | |
parent | 4e284e38ed586edeb8bdb2b0c544273a7f72021c (diff) |
powerpc/fsl: Fix mfpmr build errors with newer binutils
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
Diffstat (limited to 'arch/mips/pci')
0 files changed, 0 insertions, 0 deletions