dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* dmaengine: pl330: Mark expected switch fall-through
@ 2018-07-09 11:45 Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2018-07-09 11:45 UTC (permalink / raw)
  To: dmaengine; +Cc: krzk, Vinod Koul

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 drivers/dma/pl330.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index defcdde4d358..04fc4d8da0e9 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -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);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* dmaengine: pl330: Mark expected switch fall-through
@ 2018-07-09 12:37 Krzysztof Kozlowski
  0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2018-07-09 12:37 UTC (permalink / raw)
  To: Vinod Koul; +Cc: dmaengine

On 9 July 2018 at 13:45, Vinod Koul <vkoul@kernel.org> wrote:
> In preparation to enabling -Wimplicit-fallthrough, mark switch cases
> where we are expecting to fall through.
>
> Signed-off-by: Vinod Koul <vkoul@kernel.org>
> ---
>  drivers/dma/pl330.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
> index defcdde4d358..04fc4d8da0e9 100644
> --- a/drivers/dma/pl330.c
> +++ b/drivers/dma/pl330.c
> @@ -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);

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof
---
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-09 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-09 11:45 dmaengine: pl330: Mark expected switch fall-through Vinod Koul
  -- strict thread matches above, loose matches on Subject: below --
2018-07-09 12:37 Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).