History

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.

Gustavo A. R. Silva committed 5 years ago

Commit c8daba41 parent 220a31b1 file · +1 −0Browse files

Showing the changes to kernel/debug (1 of 1 file). Show all

Unified · Split

kernel/debug/debug_core.c+1−0
@@ -1038,6 +1038,7 @@ dbg_notify_reboot(struct notifier_block *this, unsigned long code, void *x) · 1037 unmodified lines
10381038 switch (kgdbreboot) {
10391039 case 1:
10401040 kgdb_breakpoint();
1041+ goto done;
10411042 case -1:
10421043 goto done;
10431044 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t