summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2018-12-04 21:10:57 +0100
committerMiquel Raynal <miquel.raynal@bootlin.com>2018-12-07 11:07:19 +0100
commit38842572df1c79213b99e0c3472ce95aa5d152cf (patch)
tree594d513d4cc28a7458e5ece70b8b4f2181d8a425 /drivers/mtd
parentc93c613214ac70c87beab5422a60077bf126b855 (diff)
downloadlinux-stable-38842572df1c79213b99e0c3472ce95aa5d152cf.tar.gz
linux-stable-38842572df1c79213b99e0c3472ce95aa5d152cf.tar.bz2
linux-stable-38842572df1c79213b99e0c3472ce95aa5d152cf.zip
mtd: rawnand: jz4780: annotate implicit fall throughs
There is a plan to build the kernel with -Wimplicit-fallthrough and these places in the code produced warnings. Fix them up. Signed-off-by: Mathieu Malaterre <malat@debian.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/raw/jz4780_bch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/jz4780_bch.c b/drivers/mtd/nand/raw/jz4780_bch.c
index 731c6051d91e..7201827809e9 100644
--- a/drivers/mtd/nand/raw/jz4780_bch.c
+++ b/drivers/mtd/nand/raw/jz4780_bch.c
@@ -136,8 +136,10 @@ static void jz4780_bch_read_parity(struct jz4780_bch *bch, void *buf,
switch (size8) {
case 3:
dest8[2] = (val >> 16) & 0xff;
+ /* fall through */
case 2:
dest8[1] = (val >> 8) & 0xff;
+ /* fall through */
case 1:
dest8[0] = val & 0xff;
break;