dmaengine: pl330: Mark expected switch fall-through
authorVinod Koul <vkoul@kernel.org>
Mon, 9 Jul 2018 11:39:58 +0000 (17:09 +0530)
committerVinod Koul <vkoul@kernel.org>
Tue, 10 Jul 2018 15:17:06 +0000 (20:47 +0530)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/pl330.c

index defcdde4d358b19cc5430de95fb5e9f16ec538ca..04fc4d8da0e9cec21a1d194874a35e932f5d6746 100644 (file)
@@ -1046,13 +1046,16 @@ static bool _start(struct pl330_thread *thrd)
 
                if (_state(thrd) == PL330_STATE_KILLING)
                        UNTIL(thrd, PL330_STATE_STOPPED)
+               /* fall through */
 
        case PL330_STATE_FAULTING:
                _stop(thrd);
+               /* fall through */
 
        case PL330_STATE_KILLING:
        case PL330_STATE_COMPLETING:
                UNTIL(thrd, PL330_STATE_STOPPED)
+               /* fall through */
 
        case PL330_STATE_STOPPED:
                return _trigger(thrd);