Skip to content

Commit 289a2d2

Browse files
GustavoARSilvaIngo Molnar
authored andcommitted
perf/x86/intel: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warnings: arch/x86/events/intel/core.c: In function ‘intel_pmu_init’: arch/x86/events/intel/core.c:4959:8: warning: this statement may fall through [-Wimplicit-fallthrough=] arch/x86/events/intel/core.c:5008:8: warning: this statement may fall through [-Wimplicit-fallthrough=] Warning level 3 was used: -Wimplicit-fallthrough=3 This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough. Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Kees Cook <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/20190624161913.GA32270@embeddedor Signed-off-by: Ingo Molnar <[email protected]>
1 parent 4ce54af commit 289a2d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/events/intel/core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4954,6 +4954,7 @@ __init int intel_pmu_init(void)
49544954

49554955
case INTEL_FAM6_SKYLAKE_X:
49564956
pmem = true;
4957+
/* fall through */
49574958
case INTEL_FAM6_SKYLAKE_MOBILE:
49584959
case INTEL_FAM6_SKYLAKE_DESKTOP:
49594960
case INTEL_FAM6_KABYLAKE_MOBILE:
@@ -5003,6 +5004,7 @@ __init int intel_pmu_init(void)
50035004
case INTEL_FAM6_ICELAKE_X:
50045005
case INTEL_FAM6_ICELAKE_XEON_D:
50055006
pmem = true;
5007+
/* fall through */
50065008
case INTEL_FAM6_ICELAKE_MOBILE:
50075009
case INTEL_FAM6_ICELAKE_DESKTOP:
50085010
x86_pmu.late_ack = true;

0 commit comments

Comments
 (0)