uprobes/x86: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:32:37 +0000 (12:32 -0600)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 9 Dec 2020 16:08:59 +0000 (17:08 +0100)
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@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://github.com/KSPP/linux/issues/115
arch/x86/kernel/uprobes.c

index 3fdaa042823d026366eaddcf95dc0f7de0775e89..90f44f44c2098fadf97a48a9f963408f7c71f12e 100644 (file)
@@ -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;
        }