linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][resend] sh: kgdb: Mark expected switch fall-throughs
@ 2019-11-25  7:16 Kuninori Morimoto
  2019-12-10  0:26 ` Kuninori Morimoto
  2019-12-10  8:38 ` Kuninori Morimoto
  0 siblings, 2 replies; 14+ 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] 14+ messages in thread

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

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-25  7:16 [PATCH][resend] sh: kgdb: Mark expected switch fall-throughs Kuninori Morimoto
2019-12-10  0:26 ` 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
2019-12-10  8:38 ` Kuninori Morimoto
2019-12-10  8:39   ` [PATCH] " Kuninori Morimoto
2019-12-10  8:47     ` Christophe Leroy
2019-12-11 15:18     ` Daniel Thompson
2019-12-10 20:12   ` [PATCH][resend] " 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

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