Skip to content

Commit fc2a5a6

Browse files
sfrothwellmpe
authored andcommitted
powerpc/64s: ppc_save_regs is now needed for all 64s builds
Commit 78adf6c ("powerpc/64s: Implement system reset idle wakeup reason"), added a call to ppc_save_regs() in the book3s code. ppc_save_regs() is only built if XMON and/or KEXEC_CORE are enabled, which is usually the case, however if they're not enabled then the build breaks. Fix it by making the Makefile check also build ppc_save_regs.o if CONFIG_PPC_BOOK3S is enabled. Fixes: 78adf6c ("powerpc/64s: Implement system reset idle wakeup reason") Signed-off-by: Stephen Rothwell <[email protected]> [mpe: Write change log] Signed-off-by: Michael Ellerman <[email protected]>
1 parent f79ad50 commit fc2a5a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ obj64-$(CONFIG_PPC_TRANSACTIONAL_MEM) += tm.o
128128
obj-$(CONFIG_PPC64) += $(obj64-y)
129129
obj-$(CONFIG_PPC32) += $(obj32-y)
130130

131-
ifneq ($(CONFIG_XMON)$(CONFIG_KEXEC_CORE),)
131+
ifneq ($(CONFIG_XMON)$(CONFIG_KEXEC_CORE)(CONFIG_PPC_BOOK3S),)
132132
obj-y += ppc_save_regs.o
133133
endif
134134

0 commit comments

Comments
 (0)