LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] powerpc/sstep: Fix compilation on 32-bit PowerPC
@ 2026-07-30  6:50 Link Mauve
  2026-07-30  6:50 ` [PATCH v2 1/2] powerpc/sstep: Consistently use one define to check arch bit width Link Mauve
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Link Mauve @ 2026-07-30  6:50 UTC (permalink / raw)
  To: Christophe Leroy
  Cc: Link Mauve, Madhavan Srinivasan, techflashYT, Ash Logan,
	Jonathan Neuschäfer, Michael Ellerman, Nicholas Piggin,
	linuxppc-dev, linux-kernel

Two local variables were only set but never read on 32-bit PowerPC,
which causes an error during compilation with W=1.

This series first makes the 64-bit guards consistent by converting all
uses of __powerpc64__ to use CONFIG_PPC64 instead, and then guard the
two variables rc and suffix behind CONFIG_PPC64 checks.

Link Mauve (2):
  powerpc/sstep: Consistently use one define to check arch bit width
  powerpc/sstep: Don’t define variables we won’t be using

 arch/powerpc/lib/sstep.c | 111 ++++++++++++++++++++-------------------
 1 file changed, 58 insertions(+), 53 deletions(-)

Changes since v1:
- Link to v1:
  https://lore.kernel.org/linuxppc-dev/amrpdv0g__ELifId@desktop/T/
- Switch from __powerpc64__ to CONFIG_PPC64, as it is the preferred
  check.
- Document that the build error was only occurring with W=1.
- Declare both variables on the same line.

base-commit: 78bc8af4affb9a732504eb22eeac7d1e50883853
-- 
2.55.0



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

end of thread, other threads:[~2026-07-30  7:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-30  6:50 [PATCH v2 0/2] powerpc/sstep: Fix compilation on 32-bit PowerPC Link Mauve
2026-07-30  6:50 ` [PATCH v2 1/2] powerpc/sstep: Consistently use one define to check arch bit width Link Mauve
2026-07-30  6:50 ` [PATCH v2 2/2] powerpc/sstep: Don’t define variables we won’t be using Link Mauve
2026-07-30  7:01 ` [PATCH v2 0/2] powerpc/sstep: Fix compilation on 32-bit PowerPC Christophe Leroy (CS GROUP)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox