timers: Mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 23 Jan 2019 08:14:13 +0000 (02:14 -0600)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 29 Jan 2019 19:08:42 +0000 (20:08 +0100)
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
kernel/time/hrtimer.c
kernel/time/tick-broadcast.c
kernel/time/timer.c

index f5cfa1b73d6fc52aae402d9ddc903f82c51bb4b3..6418e1bdc5491cf66549817a5f554713ccf2030c 100644 (file)
@@ -364,7 +364,7 @@ static bool hrtimer_fixup_activate(void *addr, enum debug_obj_state state)
        switch (state) {
        case ODEBUG_STATE_ACTIVE:
                WARN_ON(1);
-
+               /* fall through */
        default:
                return false;
        }
index 803fa67aace9b117576167cc8449e4e47311e6c9..ee834d4fb8140c49a7d9e17b4e5edfaf2c3b118e 100644 (file)
@@ -375,6 +375,7 @@ void tick_broadcast_control(enum tick_broadcast_mode mode)
        switch (mode) {
        case TICK_BROADCAST_FORCE:
                tick_broadcast_forced = 1;
+               /* fall through */
        case TICK_BROADCAST_ON:
                cpumask_set_cpu(cpu, tick_broadcast_on);
                if (!cpumask_test_and_set_cpu(cpu, tick_broadcast_mask)) {
index 444156debfa09d5ccb3b6b540b70db7866eace60..167e71f9ed3c54ec151fdfb2efeae52593f8f4e0 100644 (file)
@@ -647,7 +647,7 @@ static bool timer_fixup_activate(void *addr, enum debug_obj_state state)
 
        case ODEBUG_STATE_ACTIVE:
                WARN_ON(1);
-
+               /* fall through */
        default:
                return false;
        }