Skip to content

Commit 7947540

Browse files
GustavoARSilvahdeller
authored andcommitted
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 <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 47fa0fa commit 7947540

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/video/fbdev/sh7760fb.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,13 @@ static int sh7760fb_get_color_info(struct device *dev,
136136
break;
137137
case LDDFR_4BPP_MONO:
138138
lgray = 1;
139+
fallthrough;
139140
case LDDFR_4BPP:
140141
lbpp = 4;
141142
break;
142143
case LDDFR_6BPP_MONO:
143144
lgray = 1;
145+
fallthrough;
144146
case LDDFR_8BPP:
145147
lbpp = 8;
146148
break;

0 commit comments

Comments
 (0)