Skip to contentSkip to conversation

cpufreq: speedstep-lib: mark expected switch fall-through

PATCH In review Gustavo A. R. Silva 2 participants 2 messages Oct 12, 2017 – Oct 13, 2017 CPU frequency scaling framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpufreq: speedstep-lib: mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.

---
 drivers/cpufreq/speedstep-lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/speedstep-lib.c +1 -1
index ccab452..8085ec9 100644
@@ -367,7 +367,7 @@ unsigned int speedstep_detect_processor(void)
 			} else
 				return SPEEDSTEP_CPU_PIII_C;
 		}
-
+		/* fall through */
 	default:
 		return 0;
 	}
Signature · 1 line
2.7.4
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.

---
 drivers/cpufreq/speedstep-lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/speedstep-lib.c +0 -0
index ccab452..8085ec9 100644

drivers/cpufreq/speedstep-lib.c unsigned int speedstep_detect_processor(void) · line 373

Quoted 8 lines
drivers/cpufreq/speedstep-lib.c +1 -1
@@ -367,7 +367,7 @@ unsigned int speedstep_detect_processor(void)
 			} else
 				return SPEEDSTEP_CPU_PIII_C;
 		}
-
+		/* fall through */
 	default:
 		return 0;
 	}
Signature · 1 line
viresh