From: Gustavo A. R. Silva Date: Fri, 5 Mar 2021 08:25:59 +0000 (-0600) Subject: mtd: rawnand: fsmc: Fix fall-through warnings for Clang X-Git-Tag: v5.15~1295^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe1bc21f447289670c331d4826aea8f3ff38ae6e;p=platform%2Fkernel%2Flinux-starfive.git mtd: rawnand: fsmc: Fix fall-through warnings for Clang In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20210305082559.GA137646@embeddedor --- diff --git a/drivers/mtd/nand/raw/fsmc_nand.c b/drivers/mtd/nand/raw/fsmc_nand.c index 0101c0f..a5d1bd0 100644 --- a/drivers/mtd/nand/raw/fsmc_nand.c +++ b/drivers/mtd/nand/raw/fsmc_nand.c @@ -930,6 +930,7 @@ static int fsmc_nand_attach_chip(struct nand_chip *nand) "Using 4-bit SW BCH ECC scheme\n"); break; } + break; case NAND_ECC_ENGINE_TYPE_ON_DIE: break;