All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: sstep: Mark variable `rc` as unused in function 'analyse_instr'
@ 2019-03-12 20:20 ` Mathieu Malaterre
  0 siblings, 0 replies; 18+ messages in thread
From: Mathieu Malaterre @ 2019-03-12 20:20 UTC (permalink / raw)
  To: Michael Ellerman
  Cc: Mathieu Malaterre, Benjamin Herrenschmidt, Paul Mackerras,
	linuxppc-dev, linux-kernel

Add gcc attribute unused for `rc` variable.

Fix warnings treated as errors with W=1:

  arch/powerpc/lib/sstep.c:1172:31: error: variable 'rc' set but not used [-Werror=unused-but-set-variable]

Signed-off-by: Mathieu Malaterre <malat@debian.org>
---
 arch/powerpc/lib/sstep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c
index 3d33fb509ef4..32d092f62ae0 100644
--- a/arch/powerpc/lib/sstep.c
+++ b/arch/powerpc/lib/sstep.c
@@ -1169,7 +1169,7 @@ static nokprobe_inline int trap_compare(long v1, long v2)
 int analyse_instr(struct instruction_op *op, const struct pt_regs *regs,
 		  unsigned int instr)
 {
-	unsigned int opcode, ra, rb, rc, rd, spr, u;
+	unsigned int opcode, ra, rb, rc __maybe_unused, rd, spr, u;
 	unsigned long int imm;
 	unsigned long int val, val2;
 	unsigned int mb, me, sh;
-- 
2.20.1


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

end of thread, other threads:[~2019-05-28 15:54 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-12 20:20 [PATCH] powerpc: sstep: Mark variable `rc` as unused in function 'analyse_instr' Mathieu Malaterre
2019-03-12 20:20 ` Mathieu Malaterre
2019-03-12 20:56 ` Christophe Leroy
2019-03-12 20:56   ` Christophe Leroy
2019-03-12 21:12   ` Mathieu Malaterre
2019-03-12 21:12     ` Mathieu Malaterre
2019-03-12 21:25     ` Christophe Leroy
2019-03-12 21:25       ` Christophe Leroy
2019-03-13 20:12       ` Mathieu Malaterre
2019-03-13 20:12         ` Mathieu Malaterre
2019-03-12 21:23 ` [PATCH v2] powerpc/32: sstep: Move variable `rc` within CONFIG_PPC64 sentinels Mathieu Malaterre
2019-03-12 21:23   ` Mathieu Malaterre
2019-05-23 11:49   ` Mathieu Malaterre
2019-05-23 11:49     ` Mathieu Malaterre
2019-05-28 11:40   ` Michael Ellerman
2019-05-28 11:40     ` Michael Ellerman
2019-05-28 15:52     ` Mathieu Malaterre
2019-05-28 15:52       ` Mathieu Malaterre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.