Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbdev: sh7760fb: Fix -Wimplicit-fallthrough warnings

Fix the following fallthrough warnings seen after building sh
architecture with sh7763rdp_defconfig configuration:

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:139:9: note: here
139 | case LDDFR_4BPP:
| ^~~~
drivers/video/fbdev/sh7760fb.c:143:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
143 | lgray = 1;
| ~~~~~~^~~
drivers/video/fbdev/sh7760fb.c:144:9: note: here
144 | case LDDFR_8BPP:
| ^~~~

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Gustavo A. R. Silva and committed by
Helge Deller
7947540d 47fa0fac

+2
+2
drivers/video/fbdev/sh7760fb.c
··· 136 136 break; 137 137 case LDDFR_4BPP_MONO: 138 138 lgray = 1; 139 + fallthrough; 139 140 case LDDFR_4BPP: 140 141 lbpp = 4; 141 142 break; 142 143 case LDDFR_6BPP_MONO: 143 144 lgray = 1; 145 + fallthrough; 144 146 case LDDFR_8BPP: 145 147 lbpp = 8; 146 148 break;