Skip to content

Commit 2968b52

Browse files
GustavoARSilvabzolnier
authored andcommitted
omapfb: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
1 parent 810180f commit 2968b52

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/video/fbdev/omap2/omapfb/dss/dispc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,6 +1905,7 @@ static void calc_vrfb_rotation_offset(u8 rotation, bool mirror,
19051905
if (color_mode == OMAP_DSS_COLOR_YUV2 ||
19061906
color_mode == OMAP_DSS_COLOR_UYVY)
19071907
width = width >> 1;
1908+
/* fall through */
19081909
case OMAP_DSS_ROT_90:
19091910
case OMAP_DSS_ROT_270:
19101911
*offset1 = 0;
@@ -1927,6 +1928,7 @@ static void calc_vrfb_rotation_offset(u8 rotation, bool mirror,
19271928
if (color_mode == OMAP_DSS_COLOR_YUV2 ||
19281929
color_mode == OMAP_DSS_COLOR_UYVY)
19291930
width = width >> 1;
1931+
/* fall through */
19301932
case OMAP_DSS_ROT_90 + 4:
19311933
case OMAP_DSS_ROT_270 + 4:
19321934
*offset1 = 0;

drivers/video/fbdev/omap2/omapfb/omapfb-main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,7 @@ int omapfb_setup_overlay(struct fb_info *fbi, struct omap_overlay *ovl,
893893
/ (var->bits_per_pixel >> 2);
894894
break;
895895
}
896+
/* fall through */
896897
default:
897898
screen_width = fix->line_length / (var->bits_per_pixel >> 3);
898899
break;

0 commit comments

Comments
 (0)