mmc: Annotate implicit fall through in jz_mmc_irq_worker
Subsystems (2)
PATCH 1/1 mmc: Annotate implicit fall through in jz_mmc_irq_worker
There is a plan to build the kernel with -Wimplicit-fallthrough and these places in the code produced warnings (W=1).
This commit removes the following warnings:
drivers/mmc/host/jz4740_mmc.c:745:3: warning: this statement may fall through [-Wimplicit-fallthrough=] drivers/mmc/host/jz4740_mmc.c:779:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
--- drivers/mmc/host/jz4740_mmc.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/mmc/host/jz4740_mmc.c +2 -0
@@ -743,6 +743,7 @@ static irqreturn_t jz_mmc_irq_worker(int irq, void *devid)break ;jz_mmc_prepare_data_transfer (host); +/* fall through */ case JZ4740_MMC_STATE_TRANSFER_DATA :if (host->use_dma) {
@@ -777,6 +778,7 @@ static irqreturn_t jz_mmc_irq_worker(int irq, void *devid)break ; }jz4740_mmc_write_irq_reg (host,JZ_MMC_IRQ_DATA_TRAN_DONE ); +/* fall through */ case JZ4740_MMC_STATE_SEND_STOP :if (!req->stop)
Signature · 1 line
2.19.2
Quoted 10 lines · Mathieu Malaterre
There is a plan to build the kernel with -Wimplicit-fallthrough and these places in the code produced warnings (W=1).
This commit removes the following warnings:
drivers/mmc/host/jz4740_mmc.c:745:3: warning: this statement may fall through [-Wimplicit-fallthrough=]drivers/mmc/host/jz4740_mmc.c:779:3: warning: this statement may fall through [-Wimplicit-fallthrough=]Signed-off-by Mathieu Malaterre <[email protected]>
Applied for next, thanks!
Kind regards
Uffe
Quoted 27 lines
--- drivers/mmc/host/jz4740_mmc.c | 2 ++ 1 file changed, 2 insertions(+)drivers/mmc/host/jz4740_mmc.c +2
-1@@ -743,6 +743,7 @@ static irqreturn_t jz_mmc_irq_worker(int irq, void *devid)break ;jz_mmc_prepare_data_transfer (host); +/* fall through */ case JZ4740_MMC_STATE_TRANSFER_DATA :if (host->use_dma) {@@ -777,6 +778,7 @@ static irqreturn_t jz_mmc_irq_worker(int irq, void *devid)break ; }jz4740_mmc_write_irq_reg (host,JZ_MMC_IRQ_DATA_TRAN_DONE ); +/* fall through */ case JZ4740_MMC_STATE_SEND_STOP :if (!req->stop) --2.19.2