summaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2019-02-08 12:09:11 -0600
committerRichard Weinberger <richard@nod.at>2019-05-06 21:57:05 +0200
commit098d74b4eaf63b7ab13ebdac4ad95f6b214b5f62 (patch)
treec007f70c4624ff4c975a67f6d224fd3f7c9270fd /arch/sh
parentaf5d44b04dad70744a1750c733574436f51fd494 (diff)
downloadlinux-stable-098d74b4eaf63b7ab13ebdac4ad95f6b214b5f62.tar.gz
linux-stable-098d74b4eaf63b7ab13ebdac4ad95f6b214b5f62.tar.bz2
linux-stable-098d74b4eaf63b7ab13ebdac4ad95f6b214b5f62.zip
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>
Diffstat (limited to 'arch/sh')
0 files changed, 0 insertions, 0 deletions