summaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-11-25 16:16:21 +0900
committerGustavo A. R. Silva <gustavo@embeddedor.com>2019-12-10 16:11:42 -0600
commit3d519d6d388ba4f9a75d0e0b6f60d890987bc096 (patch)
treeca66a4d2c9a3de45e09e589c5df2bc5126ca79bf /arch/sh
parente42617b825f8073569da76dc4510bfa019b1c35a (diff)
downloadlinux-3d519d6d388ba4f9a75d0e0b6f60d890987bc096.tar.gz
linux-3d519d6d388ba4f9a75d0e0b6f60d890987bc096.tar.bz2
linux-3d519d6d388ba4f9a75d0e0b6f60d890987bc096.zip
sh: kgdb: Mark expected switch fall-throughs
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> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/kernel/kgdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/kernel/kgdb.c b/arch/sh/kernel/kgdb.c
index 6d61f8cf4c13..0d5f3c9d52f3 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);