From 79b614dd7be16a1108e1f0176a7bc235fa163a4e Mon Sep 17 00:00:00 2001 From: Link Mauve Date: Wed, 8 Apr 2026 14:16:04 +0200 Subject: [PATCH 1/3] XXX: Workaround sstep.c These variables are used only on CONFIG_PPC64, which causes compilation to fail on PPC32. --- arch/powerpc/lib/sstep.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c index ac3ee19531d8..dc129f0cb6a0 100644 --- a/arch/powerpc/lib/sstep.c +++ b/arch/powerpc/lib/sstep.c @@ -1354,15 +1354,15 @@ int analyse_instr(struct instruction_op *op, const struct pt_regs *regs, #ifdef CONFIG_PPC64 unsigned int suffixopcode, prefixtype, prefix_r; #endif - unsigned int opcode, ra, rb, rc, rd, spr, u; + unsigned int opcode, ra, rb/*, rc*/, rd, spr, u; unsigned long int imm; unsigned long int val, val2; unsigned int mb, me, sh; - unsigned int word, suffix; + unsigned int word/*, suffix*/; long ival; word = ppc_inst_val(instr); - suffix = ppc_inst_suffix(instr); + //suffix = ppc_inst_suffix(instr); op->type = COMPUTE; @@ -1480,7 +1480,7 @@ int analyse_instr(struct instruction_op *op, const struct pt_regs *regs, rd = (word >> 21) & 0x1f; ra = (word >> 16) & 0x1f; rb = (word >> 11) & 0x1f; - rc = (word >> 6) & 0x1f; + //rc = (word >> 6) & 0x1f; switch (opcode) { #ifdef __powerpc64__ -- 2.54.0