cpufreq: speedstep-lib: mark expected switch fall-through
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.
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/cpufreq/speedstep-lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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
2.7.4
Quoted 13 lines · Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Signed-off-by Gustavo A. R. Silva <[email protected]>--- drivers/cpufreq/speedstep-lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/speedstep-lib.c +0
-0
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 ; }
Acked-by Viresh Kumar <[email protected]>
Signature · 1 line
viresh