summaryrefslogtreecommitdiff
path: root/kernel/debug
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-05-28 23:02:22 +0300
committerDaniel Thompson <daniel.thompson@linaro.org>2021-06-01 12:34:35 +0300
commitc8daba4640ac9619f9cb34ca7c314ff1eaff5f33 (patch)
tree3261fabe81db6f65ab5b409d1c3ea0595ea7fef4 /kernel/debug
parent220a31b091fb77886eb224ce2d7a5d890e43de63 (diff)
downloadlinux-c8daba4640ac9619f9cb34ca7c314ff1eaff5f33.tar.xz
kgdb: Fix fall-through warning for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a fall-through warning by explicitly adding a goto statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/20210528200222.GA39201@embeddedor Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Diffstat (limited to 'kernel/debug')
-rw-r--r--kernel/debug/debug_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c
index a1f26766eb90..b4aa6bb6b2bd 100644
--- a/kernel/debug/debug_core.c
+++ b/kernel/debug/debug_core.c
@@ -1038,6 +1038,7 @@ dbg_notify_reboot(struct notifier_block *this, unsigned long code, void *x)
switch (kgdbreboot) {
case 1:
kgdb_breakpoint();
+ goto done;
case -1:
goto done;
}