mtd: rawnand: fsmc: Fix fall-through warnings for Clang
Subsystems (2)
PATCH RESEND 1/1 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.
--- drivers/mtd/nand/raw/fsmc_nand.c | 1 + 1 file changed, 1 insertion(+)
drivers/mtd/nand/raw/fsmc_nand.c +1 -0
@@ -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 ;
Signature · 1 line
2.27.0
Quoted 6 lines · Gustavo A. R. Silva
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.
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.
Miquel