Skip to content

Commit 25d7b70

Browse files
MIPS: Fix fall-through warnings for Clang
Fix the following fallthrough warnings: arch/mips/alchemy/devboards/db1550.c:69:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case BCSR_WHOAMI_DB1550: ^ arch/mips/alchemy/devboards/db1550.c:69:2: note: insert 'break;' to avoid fall-through case BCSR_WHOAMI_DB1550: ^ break; arch/mips/kernel/uprobes.c:176:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] default: ^ arch/mips/kernel/uprobes.c:176:2: note: insert 'break;' to avoid fall-through default: ^ break; This helps with the ongoing efforts to globally enable -Wimplicit-fallthrough for Clang. Link: KSPP#115 Link: https://lore.kernel.org/linux-mm/[email protected]/ Link: https://lore.kernel.org/linux-mm/[email protected]/ Reported-by: kernel test robot <[email protected]> Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent 6a7391e commit 25d7b70

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/mips/alchemy/devboards/db1550.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ int __init db1550_board_setup(void)
6666
case BCSR_WHOAMI_PB1550_DDR:
6767
bcsr_init(PB1550_BCSR_PHYS_ADDR,
6868
PB1550_BCSR_PHYS_ADDR + PB1550_BCSR_HEXLED_OFS);
69+
break;
6970
case BCSR_WHOAMI_DB1550:
7071
break;
7172
default:

arch/mips/kernel/uprobes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ int arch_uprobe_exception_notify(struct notifier_block *self,
173173
case DIE_UPROBE_XOL:
174174
if (uprobe_post_sstep_notifier(regs))
175175
return NOTIFY_STOP;
176+
break;
176177
default:
177178
break;
178179
}

0 commit comments

Comments
 (0)