[tip: perf/core] uprobes/x86: Fix fall-through warnings for Clang
From: tip-bot2 for Gustavo A. R. Silva
Date: Wed Dec 09 2020 - 13:47:27 EST
The following commit has been merged into the perf/core branch of tip:
Commit-ID: bd11952b400fdfdf3b017500ad6475f5b624d167
Gitweb: https://git.kernel.org/tip/bd11952b400fdfdf3b017500ad6475f5b624d167
Author: Gustavo A. R. Silva <gustavoars@xxxxxxxxxx>
AuthorDate: Fri, 20 Nov 2020 12:32:37 -06:00
Committer: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
CommitterDate: Wed, 09 Dec 2020 17:08:59 +01:00
uprobes/x86: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of letting the code fall
through to the next case.
Signed-off-by: Gustavo A. R. Silva <gustavoars@xxxxxxxxxx>
Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
Link: https://github.com/KSPP/linux/issues/115
---
arch/x86/kernel/uprobes.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/kernel/uprobes.c b/arch/x86/kernel/uprobes.c
index 3fdaa04..90f44f4 100644
--- a/arch/x86/kernel/uprobes.c
+++ b/arch/x86/kernel/uprobes.c
@@ -1015,6 +1015,8 @@ int arch_uprobe_exception_notify(struct notifier_block *self, unsigned long val,
if (uprobe_post_sstep_notifier(regs))
ret = NOTIFY_STOP;
+ break;
+
default:
break;
}