From: Gustavo A. R. Silva <hidden> Date: 2019-08-12 00:22:06
Mark switch cases where we are expecting to fall through.
Fix the following warning (Building: powerpc-ppa8548_defconfig powerpc):
drivers/dma/fsldma.c: In function ‘fsl_dma_chan_probe’:
drivers/dma/fsldma.c:1165:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
chan->toggle_ext_pause = fsl_chan_toggle_ext_pause;
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/dma/fsldma.c:1166:2: note: here
case FSL_DMA_IP_83XX:
^~~~
Reported-by: kbuild test robot <redacted>
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/dma/fsldma.c | 1 +
1 file changed, 1 insertion(+)
@@ -1163,6 +1163,7 @@ static int fsl_dma_chan_probe(struct fsldma_device *fdev,switch(chan->feature&FSL_DMA_IP_MASK){caseFSL_DMA_IP_85XX:chan->toggle_ext_pause=fsl_chan_toggle_ext_pause;+/* Fall through */caseFSL_DMA_IP_83XX:chan->toggle_ext_start=fsl_chan_toggle_ext_start;chan->set_src_loop_size=fsl_chan_set_src_loop_size;
-----Original Message-----
From: Gustavo A. R. Silva <redacted>
Sent: Sunday, August 11, 2019 7:22 PM
To: Leo Li <redacted>; Zhang Wei <zw@zh-kernel.org>; Vinod
Koul [off-list ref]; Dan Williams [off-list ref]
Cc: linuxppc-dev@lists.ozlabs.org; dmaengine@vger.kernel.org; linux-
kernel@vger.kernel.org; Gustavo A. R. Silva [off-list ref]
Subject: [PATCH] dmaengine: fsldma: Mark expected switch fall-through
Mark switch cases where we are expecting to fall through.
Fix the following warning (Building: powerpc-ppa8548_defconfig powerpc):
drivers/dma/fsldma.c: In function ‘fsl_dma_chan_probe’:
drivers/dma/fsldma.c:1165:26: warning: this statement may fall through [-
Wimplicit-fallthrough=]
chan->toggle_ext_pause = fsl_chan_toggle_ext_pause;
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/dma/fsldma.c:1166:2: note: here
case FSL_DMA_IP_83XX:
^~~~
Reported-by: kbuild test robot <redacted>
Signed-off-by: Gustavo A. R. Silva <redacted>
Mark switch cases where we are expecting to fall through.
Fix the following warning (Building: powerpc-ppa8548_defconfig powerpc):
drivers/dma/fsldma.c: In function ‘fsl_dma_chan_probe’:
drivers/dma/fsldma.c:1165:26: warning: this statement may fall through [-Wimplicit-fallthrough=]
chan->toggle_ext_pause = fsl_chan_toggle_ext_pause;
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/dma/fsldma.c:1166:2: note: here
case FSL_DMA_IP_83XX:
^~~~