linux/drivers/mtd/devices
Gustavo A. R. Silva 098d74b4ea mtd: phram: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch
cases where we are expecting to fall through.

This patch fixes the following warnings:

drivers/mtd/devices/phram.c: In function ‘parse_num64’:
drivers/mtd/devices/phram.c:149:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
     shift += 10;
     ~~~~~~^~~~~
drivers/mtd/devices/phram.c:150:4: note: here
    case 'M':
    ^~~~
drivers/mtd/devices/phram.c:151:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
     shift += 10;
     ~~~~~~^~~~~
drivers/mtd/devices/phram.c:152:4: note: here
    case 'k':
    ^~~~

Warning level 3 was used: -Wimplicit-fallthrough=3

This patch is part of the ongoing efforts to enabling
-Wimplicit-fallthrough.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
2019-05-06 21:57:05 +02:00
..
Kconfig mtd: nand: Clarify Kconfig entry for software BCH ECC algorithm 2019-04-18 08:54:00 +02:00
Makefile
bcm47xxsflash.c
bcm47xxsflash.h
block2mtd.c mtd: block2mtd: mark expected switch fall-throughs 2018-11-09 20:32:43 +01:00
docg3.c mtd: docg3: fix a possible memory leak of mtd->name 2019-01-29 15:09:16 +01:00
docg3.h mtd: use DEFINE_SHOW_ATTRIBUTE() instead of open-coding it 2018-12-03 11:32:26 +01:00
lart.c
m25p80.c mtd: m25p80: add support of octal mode I/O transfer 2019-01-17 08:43:14 +01:00
mchp23k256.c
ms02-nv.c
ms02-nv.h
mtd_dataflash.c
mtdram.c mtd: mtdram: Expose module parameters 2019-01-08 12:42:57 +01:00
phram.c mtd: phram: Mark expected switch fall-throughs 2019-05-06 21:57:05 +02:00
pmc551.c
powernv_flash.c mtd: powernv_flash: Fix device registration error 2019-02-13 14:19:40 +01:00
serial_flash_cmds.h
slram.c
spear_smi.c
sst25l.c
st_spi_fsm.c