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 (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
1038 switch (kgdbreboot) {1038 switch (kgdbreboot) {
1039 case 1:1039 case 1:
1040 kgdb_breakpoint();1040 kgdb_breakpoint();
1041 goto done;
1041 case -1:1042 case -1:
1042 goto done;1043 goto done;
1043 }1044 }

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