Skip to content

Commit c8daba4

Browse files
GustavoARSilvaDaniel Thompson
authored andcommitted
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: KSPP#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>
1 parent 220a31b commit c8daba4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kernel/debug/debug_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,7 @@ dbg_notify_reboot(struct notifier_block *this, unsigned long code, void *x)
10381038
switch (kgdbreboot) {
10391039
case 1:
10401040
kgdb_breakpoint();
1041+
goto done;
10411042
case -1:
10421043
goto done;
10431044
}

0 commit comments

Comments
 (0)