projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
220a31b
)
kgdb: Fix fall-through warning for Clang
author
Gustavo A. R. Silva
<gustavoars@kernel.org>
Fri, 28 May 2021 20:02:22 +0000
(15:02 -0500)
committer
Daniel Thompson
<daniel.thompson@linaro.org>
Tue, 1 Jun 2021 09:34:35 +0000
(10:34 +0100)
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>
kernel/debug/debug_core.c
patch
|
blob
|
history
diff --git
a/kernel/debug/debug_core.c
b/kernel/debug/debug_core.c
index a1f26766eb908281777c961f10b609d16c729f80..b4aa6bb6b2bd937147319b16ac6ee9dae84b38d7 100644
(file)
--- 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;
}