perf/x86: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:31:36 +0000 (12:31 -0600)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 9 Dec 2020 16:08:59 +0000 (17:08 +0100)
commitb6459575451769b0550621865d1ddb65afdb55a1
tree2aca264fbb4f1c004a749f9054d43d6017d773b6
parente689b300c99ca2dd80d3f662e19499bba27cda09
perf/x86: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a fallthrough pseudo-keyword as a replacement for
a /* fall through */ comment, instead of letting the code fall through
to the next case.

Notice that Clang doesn't recognize /* fall through */ comments as
implicit fall-through markings.

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/events/core.c