]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
cpufreq: speedstep-lib: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 12 Oct 2017 22:41:03 +0000 (17:41 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 13 Oct 2017 22:58:25 +0000 (00:58 +0200)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/speedstep-lib.c

index ccab452a4ef5b739cd8294cfa3197211afa9afb8..8085ec9000d19eb3c1ed3800844f4eeb12be8511 100644 (file)
@@ -367,7 +367,7 @@ unsigned int speedstep_detect_processor(void)
                        } else
                                return SPEEDSTEP_CPU_PIII_C;
                }
-
+               /* fall through */
        default:
                return 0;
        }