linux-stable/arch/powerpc
Michael Ellerman 8f7f583ce3 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-13 12:50:05 +02:00
..
boot powerpc: dts: t208x: Disable 10G on MAC1 and MAC2 2023-02-25 11:51:50 +01:00
configs Remove DECnet support from kernel 2023-06-21 15:39:57 +02:00
crypto
include powerpc/fsl: Fix mfpmr build errors with newer binutils 2024-04-13 12:50:05 +02:00
kernel powerpc: Fix build error due to is_valid_bugaddr() 2024-02-23 08:12:43 +01:00
kvm powerpc/mm: move platform specific mmu-xxx.h in platform directories 2023-08-30 16:31:44 +02:00
lib powerpc/lib: Validate size for vector operations 2024-02-23 08:12:44 +01:00
math-emu powerpc/math_emu/efp: Include module.h 2022-10-26 13:19:34 +02:00
mm powerpc/mm: Fix null-pointer dereference in pgtable_cache_add 2024-02-23 08:12:43 +01:00
net powerpc/bpf: Emit stf barrier instruction sequences for BPF_NOSPEC 2021-11-26 11:36:17 +01:00
oprofile
perf powerpc/hv-gpci: Fix the H_GET_PERF_COUNTER_INFO hcall return value checks 2024-03-26 18:22:41 -04:00
platforms powerpc/embedded6xx: Fix no previous prototype for avr_uart_send() etc. 2024-03-26 18:22:41 -04:00
purgatory powerpc/purgatory: remove PGO flags 2023-06-21 15:39:57 +02:00
sysdev powerpc: remove redundant 'default n' from Kconfig-s 2024-01-25 14:33:31 -08:00
tools powerpc/tools: Don't quote $objdump in scripts 2020-01-04 19:12:42 +01:00
xmon powerpc/xmon: Change printk() to pr_cont() 2020-12-30 11:26:12 +01:00
Kconfig powerpc: remove redundant 'default n' from Kconfig-s 2024-01-25 14:33:31 -08:00
Kconfig.debug powerpc: remove redundant 'default n' from Kconfig-s 2024-01-25 14:33:31 -08:00
Makefile powerpc: Fail build if using recordmcount with binutils v2.37 2023-08-30 16:31:52 +02:00
Makefile.postlink