diff mbox series

[-next] tools/power turbostat: replace FALLTHRU comment by fallthrough pseudo-keyword

Message ID 20230801070810.3700584-1-ruanjinjie@huawei.com (mailing list archive)
State Superseded, archived
Delegated to: Len Brown
Headers show
Series [-next] tools/power turbostat: replace FALLTHRU comment by fallthrough pseudo-keyword | expand

Commit Message

Jinjie Ruan Aug. 1, 2023, 7:08 a.m. UTC
Replace the existing /* FALLTHRU */ comments with the
new pseudo-keyword macro fallthrough[1].

[1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
---
 tools/power/x86/turbostat/turbostat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 8a36ba5df9f9..8a7483caeb76 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -3742,7 +3742,7 @@  int probe_nhm_msrs(unsigned int family, unsigned int model)
 		break;
 	case INTEL_FAM6_ATOM_SILVERMONT:	/* BYT */
 		no_MSR_MISC_PWR_MGMT = 1;
-		/* FALLTHRU */
+		fallthrough;
 	case INTEL_FAM6_ATOM_SILVERMONT_D:	/* AVN */
 		pkg_cstate_limits = slv_pkg_cstate_limits;
 		break;
@@ -4808,7 +4808,7 @@  void perf_limit_reasons_probe(unsigned int family, unsigned int model)
 	case INTEL_FAM6_HASWELL_L:	/* HSW */
 	case INTEL_FAM6_HASWELL_G:	/* HSW */
 		do_gfx_perf_limit_reasons = 1;
-		/* FALLTHRU */
+		fallthrough;
 	case INTEL_FAM6_HASWELL_X:	/* HSX */
 		do_core_perf_limit_reasons = 1;
 		do_ring_perf_limit_reasons = 1;