linux-yocto/arch/powerpc
Madhavan Srinivasan 8a7ac27372 powerpc/kernel: Fix ppc_save_regs inclusion in build
commit 93bd4a80ef upstream.

Recent patch fixed an old commit
'fc2a5a6161a2 ("powerpc/64s: ppc_save_regs is now needed for all 64s builds")'
which is to include building of ppc_save_reg.c only when XMON
and KEXEC_CORE and PPC_BOOK3S are enabled. This was valid, since
ppc_save_regs was called only in replay_system_reset() of old
irq.c which was under BOOK3S.

But there has been multiple refactoring of irq.c and have
added call to ppc_save_regs() from __replay_soft_interrupts
-> replay_soft_interrupts which is part of irq_64.c included
under CONFIG_PPC64. And since ppc_save_regs is called in
CRASH_DUMP path as part of crash_setup_regs in kexec.h,
CONFIG_PPC32 also needs it.

So with this recent patch which enabled the building of
ppc_save_regs.c caused a build break when none of these
(XMON, KEXEC_CORE, BOOK3S) where enabled as part of config.
Patch to enable building of ppc_save_regs.c by defaults.

Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250511041111.841158-1-maddy@linux.ibm.com
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-10 16:03:20 +02:00
..
boot powerpc/boot: Fix dash warning 2025-05-09 09:43:57 +02:00
configs arch/powerpc: drop GENERIC_PTDUMP from mpc885_ads_defconfig 2025-04-10 14:37:34 +02:00
crypto crypto: powerpc/p10-aes-gcm - Disable CRYPTO_AES_GCM_P10 2024-10-04 16:29:35 +02:00
include powerpc: Fix struct termio related ioctl macros 2025-07-10 16:03:16 +02:00
kernel powerpc/kernel: Fix ppc_save_regs inclusion in build 2025-07-10 16:03:20 +02:00
kexec powerpc/crash: Fix non-smp kexec preparation 2025-06-19 15:28:02 +02:00
kvm Revert "KVM: PPC: e500: Mark "struct page" dirty in kvmppc_e500_shadow_map()" 2025-03-13 12:58:39 +01:00
lib powerpc/code-patching: Fix KASAN hit by not flagging text patching area as VM_ALLOC 2025-02-27 04:10:48 -08:00
math-emu
mm book3s64/radix: Fix compile errors when CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=n 2025-06-04 14:42:15 +02:00
net Revert "powerpc/bpf: rename powerpc64_jit_data to powerpc_jit_data" 2024-07-09 11:44:29 +02:00
perf arch/powerpc/perf: Check the instruction type before creating sample with perf_mem_data_src 2025-06-04 14:42:11 +02:00
platforms powerpc/pseries/msi: Avoid reading PCI device registers in reduced power states 2025-06-27 11:08:43 +01:00
purgatory
sysdev of: remove internal arguments from of_property_for_each_u32() 2025-02-08 09:51:51 +01:00
tools powerpc/ftrace: Add support for -fpatchable-function-entry 2023-08-22 00:09:06 +10:00
xmon powerpc/xmon: Fix disassembly CPU feature checks 2024-08-03 08:54:02 +02:00
Kbuild
Kconfig powerpc: Fix stack protector Kconfig test for clang 2024-12-09 10:33:09 +01:00
Kconfig.debug powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y 2023-07-03 16:07:55 +10:00
Makefile powerpc: Adjust adding stack protector flags to KBUILD_CLAGS for clang 2024-12-09 10:33:09 +01:00
Makefile.postlink