]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
sh: kgdb: Mark expected switch fall-throughs
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 25 Nov 2019 07:16:21 +0000 (16:16 +0900)
committerGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 10 Dec 2019 22:11:42 +0000 (16:11 -0600)
commit3d519d6d388ba4f9a75d0e0b6f60d890987bc096
treeca66a4d2c9a3de45e09e589c5df2bc5126ca79bf
parente42617b825f8073569da76dc4510bfa019b1c35a
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>
arch/sh/kernel/kgdb.c