projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c93c613
)
mtd: rawnand: jz4780: annotate implicit fall throughs
author
Mathieu Malaterre
<malat@debian.org>
Tue, 4 Dec 2018 20:10:57 +0000
(21:10 +0100)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Fri, 7 Dec 2018 10:07:19 +0000
(11:07 +0100)
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>
drivers/mtd/nand/raw/jz4780_bch.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/raw/jz4780_bch.c
b/drivers/mtd/nand/raw/jz4780_bch.c
index
731c605
..
7201827
100644
(file)
--- 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;