linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][resend] sh: kgdb: Mark expected switch fall-throughs
@ 2019-12-10  0:26 Kuninori Morimoto
  2019-12-10  0:27 ` [PATCH] " Kuninori Morimoto
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Kuninori Morimoto @ 2019-12-10  0:26 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Yoshinori Sato, Rich Felker
  Cc: Daniel Thompson, Will Deacon, Douglas Anderson, Paul Burton,
	Christophe Leroy, linux-sh, linux-kernel


Hi Greg

I'm posting this patch from few month ago,
but it seems SH ML maintainer is not working in these days...

I'm not sure who can handle this patch in this case,
but is it possible to consider about it ?

Thank you for your help !!
Best regards
---
Kuninori Morimoto

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH][resend] sh: kgdb: Mark expected switch fall-throughs
@ 2019-12-10  8:38 Kuninori Morimoto
  2019-12-10 20:12 ` Rob Landley
  2019-12-10 22:28 ` Gustavo A. R. Silva
  0 siblings, 2 replies; 11+ messages in thread
From: Kuninori Morimoto @ 2019-12-10  8:38 UTC (permalink / raw)
  To: Andrew Morton, Greg Kroah-Hartman, Yoshinori Sato, Rich Felker
  Cc: Daniel Thompson, Will Deacon, Douglas Anderson, Paul Burton,
	Christophe Leroy, linux-sh, linux-kernel


Hi Andrew

I'm posting this patch from few month ago,
but it seems SH maintainer is not working in these days...

Is it possible to consider about it ?
SH compile will be error without this patch.

Thank you for your help !!
Best regards
---
Kuninori Morimoto

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH][resend] sh: kgdb: Mark expected switch fall-throughs
@ 2019-11-25  7:16 Kuninori Morimoto
  0 siblings, 0 replies; 11+ messages in thread
From: Kuninori Morimoto @ 2019-11-25  7:16 UTC (permalink / raw)
  To: Yoshinori Sato, Rich Felker
  Cc: Daniel Thompson, Will Deacon, Douglas Anderson, Paul Burton,
	Christophe Leroy, linux-sh, linux-kernel


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Mark switch cases where we are expecting to fall through.

This patch fixes the following error:

LINUX/arch/sh/kernel/kgdb.c: In function 'kgdb_arch_handle_exception':
LINUX/arch/sh/kernel/kgdb.c:267:6: error: this statement may fall through [-Werror=implicit-fallthrough=]
if (kgdb_hex2long(&ptr, &addr))
^
LINUX/arch/sh/kernel/kgdb.c:269:2: note: here
case 'D':
^~~~

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
---

- nothing happen in 1 month...

 arch/sh/kernel/kgdb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/sh/kernel/kgdb.c b/arch/sh/kernel/kgdb.c
index 6d61f8c..0d5f3c9 100644
--- a/arch/sh/kernel/kgdb.c
+++ b/arch/sh/kernel/kgdb.c
@@ -266,6 +266,7 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
 		ptr = &remcomInBuffer[1];
 		if (kgdb_hex2long(&ptr, &addr))
 			linux_regs->pc = addr;
+		/* fallthrough */
 	case 'D':
 	case 'k':
 		atomic_set(&kgdb_cpu_doing_single_step, -1);
-- 
2.7.4


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

end of thread, other threads:[~2019-12-11  9:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-10  0:26 [PATCH][resend] sh: kgdb: Mark expected switch fall-throughs Kuninori Morimoto
2019-12-10  0:27 ` [PATCH] " Kuninori Morimoto
2019-12-10  8:17 ` [PATCH][resend] " Geert Uytterhoeven
2019-12-10  8:19   ` Kuninori Morimoto
2019-12-10 20:10 ` Rob Landley
  -- strict thread matches above, loose matches on Subject: below --
2019-12-10  8:38 Kuninori Morimoto
2019-12-10 20:12 ` Rob Landley
2019-12-10 20:20   ` Rob Landley
2019-12-10 22:28 ` Gustavo A. R. Silva
2019-12-11  9:17   ` Yoshinori Sato
2019-11-25  7:16 Kuninori Morimoto

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).