From: Gustavo A. R. Silva Date: Mon, 29 Jul 2019 00:02:59 +0000 (-0500) Subject: mmc: sdhci-s3c: Mark expected switch fall-through X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b1507b2d34d642ebabed70d547d276e3268b7db6;p=openwrt%2Fstaging%2Fblogic.git mmc: sdhci-s3c: Mark expected switch fall-through Mark switch cases where we are expecting to fall through. This patch fixes the following warnings: drivers/mmc/host/sdhci-s3c.c: In function 'sdhci_s3c_probe': drivers/mmc/host/sdhci-s3c.c:613:19: warning: this statement may fall through [-Wimplicit-fallthrough=] host->mmc->caps |= MMC_CAP_8_BIT_DATA; drivers/mmc/host/sdhci-s3c.c:614:2: note: here case 4: ^~~~ Reported-by: Stephen Rothwell Signed-off-by: Gustavo A. R. Silva Acked-by: Adrian Hunter Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index f5753aef7151..b631c66550d8 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhci-s3c.c @@ -611,6 +611,7 @@ static int sdhci_s3c_probe(struct platform_device *pdev) switch (pdata->max_width) { case 8: host->mmc->caps |= MMC_CAP_8_BIT_DATA; + /* Fall through */ case 4: host->mmc->caps |= MMC_CAP_4_BIT_DATA; break;