diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-01-23 03:14:13 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-01-29 14:08:42 -0500 |
commit | 75b710af7139768fd4ba2d4e05335d2344796279 (patch) | |
tree | 19b6a083e7a7c1fdf38c35af02e888e2f72659c4 /kernel/time/tick-broadcast.c | |
parent | ae503ab04913794b12e1939caa75aa091062a1b3 (diff) |
timers: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where fall through is indeed expected.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20190123081413.GA3949@embeddedor
Diffstat (limited to 'kernel/time/tick-broadcast.c')
-rw-r--r-- | kernel/time/tick-broadcast.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c index 803fa67aace9..ee834d4fb814 100644 --- a/kernel/time/tick-broadcast.c +++ b/kernel/time/tick-broadcast.c | |||
@@ -375,6 +375,7 @@ void tick_broadcast_control(enum tick_broadcast_mode mode) | |||
375 | switch (mode) { | 375 | switch (mode) { |
376 | case TICK_BROADCAST_FORCE: | 376 | case TICK_BROADCAST_FORCE: |
377 | tick_broadcast_forced = 1; | 377 | tick_broadcast_forced = 1; |
378 | /* fall through */ | ||
378 | case TICK_BROADCAST_ON: | 379 | case TICK_BROADCAST_ON: |
379 | cpumask_set_cpu(cpu, tick_broadcast_on); | 380 | cpumask_set_cpu(cpu, tick_broadcast_on); |
380 | if (!cpumask_test_and_set_cpu(cpu, tick_broadcast_mask)) { | 381 | if (!cpumask_test_and_set_cpu(cpu, tick_broadcast_mask)) { |