aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2021-11-14 22:32:57 -0800
committerGustavo A. R. Silva <gustavoars@kernel.org>2021-11-22 18:43:20 -0600
commitceec16f8fd660c7827e72aec74021f1acc1f7240 (patch)
tree32dd8cd6ec9de97e2adc83b1086aeba6d8c70f43
parentcd3ed04e7fc365e4e581333c3ff69c8da6ca0e8b (diff)
downloadlinux-for-linus/kspp.tar.gz
fbdev: sh7760fb: document fallthrough casesfallthrough-fixes-clang-5.17-rc1for-linus/kspp
Fix fallthrough warnings in sh776fb.c: ../drivers/video/fbdev/sh7760fb.c: In function 'sh7760fb_get_color_info': ../drivers/video/fbdev/sh7760fb.c:138:23: warning: this statement may fall through [-Wimplicit-fallthrough=] 138 | lgray = 1; ../drivers/video/fbdev/sh7760fb.c:143:23: warning: this statement may fall through [-Wimplicit-fallthrough=] 143 | lgray = 1; Just document the current state of code execution/flow. Fixes: 4a25e41831ee ("video: sh7760fb: SH7760/SH7763 LCDC framebuffer driver") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org> Cc: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Cc: Manuel Lauss <mano@roarinelk.homelinux.net> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Cc: linux-sh@vger.kernel.org Cc: linux-fbdev@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
-rw-r--r--drivers/video/fbdev/sh7760fb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbdev/sh7760fb.c b/drivers/video/fbdev/sh7760fb.c
index 5978a89212322..f99218eb877f9 100644
--- a/drivers/video/fbdev/sh7760fb.c
+++ b/drivers/video/fbdev/sh7760fb.c
@@ -136,11 +136,13 @@ static int sh7760fb_get_color_info(struct device *dev,
break;
case LDDFR_4BPP_MONO:
lgray = 1;
+ fallthrough;
case LDDFR_4BPP:
lbpp = 4;
break;
case LDDFR_6BPP_MONO:
lgray = 1;
+ fallthrough;
case LDDFR_8BPP:
lbpp = 8;
break;