Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75b710af authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Thomas Gleixner
Browse files

timers: Mark expected switch fall-throughs



In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where fall through is indeed expected.

Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarThomas 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
parent ae503ab0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}
+1 −0
Original line number Diff line number Diff line
@@ -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)) {
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}