Skip to contentSkip to conversation

Patch "powerpc: do not build ppc_save_regs.o always" has been added to the 6.15-stable tree

DISCUSSION Jiri Slaby 3 participants 4 messages Jun 11, 2025 – Jun 17, 2025 1 message not in the archive Stable branch

lore
Share & tools
lore

Jiri Slaby

author
#1 lore raw
In reply to a message not in the archive
Quoted 6 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

powerpc: do not build ppc_save_regs.o always

to the 6.15-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

Please drop this from all trees. It was correctly broken. The whole if was removed later by 93bd4a80efeb521314485a06d8c21157240497bb.

Quoted 46 lines

The filename of the patch is:
powerpc-do-not-build-ppc_save_regs.o-always.patch
and it can be found in the queue-6.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

commit 242c2ba3f16d92cd81c309725550f6c723833ae3

Author: Jiri Slaby (SUSE) <[email protected]>
Date:   Thu Apr 17 12:53:05 2025 +0200

powerpc: do not build ppc_save_regs.o always

[ Upstream commit 497b7794aef03d525a5be05ae78dd7137c6861a5 ]

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.

Fixes fc2a5a6161a2 ("powerpc/64s: ppc_save_regs is now needed for all 64s builds")
arch/powerpc/kernel/Makefile +1 -1
index 6ac621155ec3c..0c26b2412d173 100644
@@ -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
 
Signature · 2 lines
js
suse labs
#2 lore raw

Le 11/06/2025 à 06:15, Jiri Slaby a écrit :

Quoted 9 lines · Sasha Levin
Quoted 6 lines

This is a note to let you know that I've just added the patch titled

     powerpc: do not build ppc_save_regs.o always

to the 6.15-stable tree which can be found at:
     https://eur01.safelinks.protection.outlook.com/? url=http%3A%2F%2Fwww.kernel.org%2Fgit%2F%3Fp%3Dlinux%2Fkernel%2Fgit%2Fstable%2Fstable-queue.git%3Ba%3Dsummary&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7Cf9c2453dd6154212e43a08dda89ea845%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638852121563909145%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=ckwC5j7O2j%2FATCggT3jwcKl3K5HRVpwA7DxjZUGnwZg%3D&reserved=0

Please drop this from all trees. It was correctly broken. The whole if was removed later by 93bd4a80efeb521314485a06d8c21157240497bb.

Isn't it better to keep it and add 93bd4a80efeb ("powerpc/kernel: Fix ppc_save_regs inclusion in build") instead of droping it and keep a bad test that works by chance ?

Christophe

Quoted 41 lines
Quoted 39 lines

The filename of the patch is:
      powerpc-do-not-build-ppc_save_regs.o-always.patch and it can be found in the queue-6.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

commit 242c2ba3f16d92cd81c309725550f6c723833ae3
Author: Jiri Slaby (SUSE) <[email protected]>
Date:   Thu Apr 17 12:53:05 2025 +0200

     powerpc: do not build ppc_save_regs.o always
     [ Upstream commit 497b7794aef03d525a5be05ae78dd7137c6861a5 ] 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.

Fixes fc2a5a6161a2 ("powerpc/64s: ppc_save_regs is now needed for all 64s builds")
Link https://eur01.safelinks.protection.outlook.com/? url=https%3A%2F%2Fpatch.msgid.link%2F20250417105305.397128-1- jirislaby%40kernel.org&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7Cf9c2453dd6154212e43a08dda89ea845%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638852121563928665%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=z4VKRS6xdEjQb0KWlyAaZD7Oykeqdou4ji8bb56yShY%3D&reserved=0
arch/powerpc/kernel/Makefile +0 -0
index 6ac621155ec3c..0c26b2412d173 100644
@@ -160,7 +160,7 @@ endif

  obj64-$(CONFIG_PPC_TRANSACTIONAL_MEM)    += tm.o

arch/powerpc/kernel/Makefile +1 -1
-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

author
#3 lore raw
Quoted 6 lines · Christophe Leroy

Le 11/06/2025 à 06:15, Jiri Slaby a écrit :

Quoted 3 lines · Sasha Levin
Quoted 2 lines

This is a note to let you know that I've just added the patch titled

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

     powerpc: do not build ppc_save_regs.o always

to the 6.15-stable tree which can be found at:
     https://eur01.safelinks.protection.outlook.com/? url=http%3A%2F%2Fwww.kernel.org%2Fgit%2F%3Fp%3Dlinux%2Fkernel%2Fgit%2Fstable%2Fstable-queue.git%3Ba%3Dsummary&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7Cf9c2453dd6154212e43a08dda89ea845%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638852121563909145%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=ckwC5j7O2j%2FATCggT3jwcKl3K5HRVpwA7DxjZUGnwZg%3D&reserved=0

Please drop this from all trees. It was correctly broken. The whole if was removed later by 93bd4a80efeb521314485a06d8c21157240497bb.

Isn't it better to keep it and add 93bd4a80efeb ("powerpc/kernel: Fix ppc_save_regs inclusion in build") instead of droping it and keep a bad test that works by chance ?

Makes sense to me too (it worked by a chance for almost a decade). So all or nothing...

thanks,

Signature · 2 lines
js
suse labs
maintainer
#4 lore raw
Quoted 15 lines · Jiri Slaby
Quoted 14 lines · Christophe Leroy

Le 11/06/2025 à 06:15, Jiri Slaby a écrit :

Quoted 10 lines · Sasha Levin
Quoted 6 lines

This is a note to let you know that I've just added the patch titled

     powerpc: do not build ppc_save_regs.o always

to the 6.15-stable tree which can be found at:
     https://eur01.safelinks.protection.outlook.com/? url=http%3A%2F%2Fwww.kernel.org%2Fgit%2F%3Fp%3Dlinux%2Fkernel%2Fgit%2Fstable%2Fstable-queue.git%3Ba%3Dsummary&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7Cf9c2453dd6154212e43a08dda89ea845%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638852121563909145%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=ckwC5j7O2j%2FATCggT3jwcKl3K5HRVpwA7DxjZUGnwZg%3D&reserved=0

Please drop this from all trees. It was correctly broken. The whole if was removed later by 93bd4a80efeb521314485a06d8c21157240497bb.

Quoted 6 lines
Quoted 3 lines

Isn't it better to keep it and add 93bd4a80efeb ("powerpc/kernel: Fix ppc_save_regs inclusion in build") instead of droping it and keep a bad test that works by chance ?

Makes sense to me too (it worked by a chance for almost a decade). So all or nothing...

Ok, I've done that now, thanks.

greg k-h