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.
Showing the changes to kernel/debug/debug_core.c (1 of 1 file). Show all
Unified · Split
| @@ -1038,6 +1038,7 @@ dbg_notify_reboot(struct notifier_block *this, unsigned long code, void *x) · 1037 unmodified lines | ||
| 1038 | 1038 | switch (kgdbreboot) { |
| 1039 | 1039 | case 1: |
| 1040 | 1040 | kgdb_breakpoint(); |
| 1041 | + goto done; | |
| 1041 | 1042 | case -1: |
| 1042 | 1043 | goto done; |
| 1043 | 1044 | } |