提交 bbcb8755 编写于 作者: V Vinod Koul

dmaengine: pl330: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Reviewed-by: NKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: NVinod Koul <vkoul@kernel.org>
上级 ce397d21
...@@ -1046,13 +1046,16 @@ static bool _start(struct pl330_thread *thrd) ...@@ -1046,13 +1046,16 @@ static bool _start(struct pl330_thread *thrd)
if (_state(thrd) == PL330_STATE_KILLING) if (_state(thrd) == PL330_STATE_KILLING)
UNTIL(thrd, PL330_STATE_STOPPED) UNTIL(thrd, PL330_STATE_STOPPED)
/* fall through */
case PL330_STATE_FAULTING: case PL330_STATE_FAULTING:
_stop(thrd); _stop(thrd);
/* fall through */
case PL330_STATE_KILLING: case PL330_STATE_KILLING:
case PL330_STATE_COMPLETING: case PL330_STATE_COMPLETING:
UNTIL(thrd, PL330_STATE_STOPPED) UNTIL(thrd, PL330_STATE_STOPPED)
/* fall through */
case PL330_STATE_STOPPED: case PL330_STATE_STOPPED:
return _trigger(thrd); return _trigger(thrd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册