linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: do not build ppc_save_regs.o always
@ 2025-04-17 10:53 Jiri Slaby (SUSE)
  2025-04-17 12:26 ` Stephen Rothwell
  2025-05-04  3:21 ` Madhavan Srinivasan
  0 siblings, 2 replies; 3+ messages in thread
From: Jiri Slaby (SUSE) @ 2025-04-17 10:53 UTC (permalink / raw)
  To: maddy
  Cc: linux-kernel, Jiri Slaby (SUSE), Stephen Rothwell,
	Michael Ellerman, Nicholas Piggin, Christophe Leroy, Naveen N Rao,
	linuxppc-dev

The Fixes commit below tried to add CONFIG_PPC_BOOK3S to one of the
conditions to enable the build of ppc_save_regs.o. But it failed to do
so, in fact. The commit omitted to add a dollar sign.

Therefore, ppc_save_regs.o is built always these days (as
"(CONFIG_PPC_BOOK3S)" is never an empty string).

Fix this by adding the missing dollar sign.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Fixes: fc2a5a6161a2 ("powerpc/64s: ppc_save_regs is now needed for all 64s builds")
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Naveen N Rao <naveen@kernel.org>
Cc: linuxppc-dev@lists.ozlabs.org
---
 arch/powerpc/kernel/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
index 6ac621155ec3..0c26b2412d17 100644
--- a/arch/powerpc/kernel/Makefile
+++ b/arch/powerpc/kernel/Makefile
@@ -160,7 +160,7 @@ endif
 
 obj64-$(CONFIG_PPC_TRANSACTIONAL_MEM)	+= tm.o
 
-ifneq ($(CONFIG_XMON)$(CONFIG_KEXEC_CORE)(CONFIG_PPC_BOOK3S),)
+ifneq ($(CONFIG_XMON)$(CONFIG_KEXEC_CORE)$(CONFIG_PPC_BOOK3S),)
 obj-y				+= ppc_save_regs.o
 endif
 
-- 
2.49.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] powerpc: do not build ppc_save_regs.o always
  2025-04-17 10:53 [PATCH] powerpc: do not build ppc_save_regs.o always Jiri Slaby (SUSE)
@ 2025-04-17 12:26 ` Stephen Rothwell
  2025-05-04  3:21 ` Madhavan Srinivasan
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2025-04-17 12:26 UTC (permalink / raw)
  To: Jiri Slaby (SUSE)
  Cc: maddy, linux-kernel, Michael Ellerman, Nicholas Piggin,
	Christophe Leroy, Naveen N Rao, linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1208 bytes --]

Hi Jiri,

On Thu, 17 Apr 2025 12:53:05 +0200 "Jiri Slaby (SUSE)" <jirislaby@kernel.org> wrote:
>
> The Fixes commit below tried to add CONFIG_PPC_BOOK3S to one of the
> conditions to enable the build of ppc_save_regs.o. But it failed to do
> so, in fact. The commit omitted to add a dollar sign.
> 
> Therefore, ppc_save_regs.o is built always these days (as
> "(CONFIG_PPC_BOOK3S)" is never an empty string).
> 
> Fix this by adding the missing dollar sign.
> 
> Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
> Fixes: fc2a5a6161a2 ("powerpc/64s: ppc_save_regs is now needed for all 64s builds")
> Cc: Stephen Rothwell <sfr@canb.auug.org.au>
> Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
> Cc: Michael Ellerman <mpe@ellerman.id.au>
> Cc: Nicholas Piggin <npiggin@gmail.com>
> Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
> Cc: Naveen N Rao <naveen@kernel.org>
> Cc: linuxppc-dev@lists.ozlabs.org

Thanks for that.

Only 7.5 years later :-)  This shows why I should not have been fixing
problems in linux-next, I should have only ever complained about them,
like I do now :-)

Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] powerpc: do not build ppc_save_regs.o always
  2025-04-17 10:53 [PATCH] powerpc: do not build ppc_save_regs.o always Jiri Slaby (SUSE)
  2025-04-17 12:26 ` Stephen Rothwell
@ 2025-05-04  3:21 ` Madhavan Srinivasan
  1 sibling, 0 replies; 3+ messages in thread
From: Madhavan Srinivasan @ 2025-05-04  3:21 UTC (permalink / raw)
  To: Jiri Slaby (SUSE)
  Cc: linux-kernel, Stephen Rothwell, Michael Ellerman, Nicholas Piggin,
	Christophe Leroy, Naveen N Rao, linuxppc-dev

On Thu, 17 Apr 2025 12:53:05 +0200, Jiri Slaby (SUSE) wrote:
> The Fixes commit below tried to add CONFIG_PPC_BOOK3S to one of the
> conditions to enable the build of ppc_save_regs.o. But it failed to do
> so, in fact. The commit omitted to add a dollar sign.
> 
> Therefore, ppc_save_regs.o is built always these days (as
> "(CONFIG_PPC_BOOK3S)" is never an empty string).
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc: do not build ppc_save_regs.o always
      https://git.kernel.org/powerpc/c/497b7794aef03d525a5be05ae78dd7137c6861a5

Thanks


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-04  3:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-17 10:53 [PATCH] powerpc: do not build ppc_save_regs.o always Jiri Slaby (SUSE)
2025-04-17 12:26 ` Stephen Rothwell
2025-05-04  3:21 ` Madhavan Srinivasan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).