Skip to content

Commit 3d519d6

Browse files
morimotoGustavoARSilva
authored andcommitted
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 <[email protected]> Acked-by: Daniel Thompson <[email protected]> Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent e42617b commit 3d519d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/sh/kernel/kgdb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
266266
ptr = &remcomInBuffer[1];
267267
if (kgdb_hex2long(&ptr, &addr))
268268
linux_regs->pc = addr;
269+
/* fallthrough */
269270
case 'D':
270271
case 'k':
271272
atomic_set(&kgdb_cpu_doing_single_step, -1);

0 commit comments

Comments
 (0)