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

video: offb: annotate implicit fall throughs

There is a plan to build the kernel with -Wimplicit-fallthrough and
these places in the code produced warnings (W=1). Fix them up.

This commit remove the following warnings:

drivers/video/fbdev/offb.c:211:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
drivers/video/fbdev/offb.c:142:3: warning: this statement may fall through [-Wimplicit-fallthrough=]

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Acked-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Mathieu Malaterre and committed by
Bartlomiej Zolnierkiewicz
89ef5c6a f1fbbf5c

+2
+2
drivers/video/fbdev/offb.c
··· 141 141 /* Clear PALETTE_ACCESS_CNTL in DAC_CNTL */ 142 142 out_le32(par->cmap_adr + 0x58, 143 143 in_le32(par->cmap_adr + 0x58) & ~0x20); 144 + /* fall through */ 144 145 case cmap_r128: 145 146 /* Set palette index & data */ 146 147 out_8(par->cmap_adr + 0xb0, regno); ··· 211 210 /* Clear PALETTE_ACCESS_CNTL in DAC_CNTL */ 212 211 out_le32(par->cmap_adr + 0x58, 213 212 in_le32(par->cmap_adr + 0x58) & ~0x20); 213 + /* fall through */ 214 214 case cmap_r128: 215 215 /* Set palette index & data */ 216 216 out_8(par->cmap_adr + 0xb0, i);