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

video: fbdev: aty: radeon_pm: 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 <garsilva@embeddedor.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Gustavo A. R. Silva and committed by
Bartlomiej Zolnierkiewicz
0101f48a f5ed28d3

+3
+3
drivers/video/fbdev/aty/radeon_pm.c
··· 1207 1207 case 1: 1208 1208 if (mc & 0x4) 1209 1209 break; 1210 + /* fall through */ 1210 1211 case 2: 1211 1212 dll_sleep_mask |= MDLL_R300_RDCK__MRDCKB_SLEEP; 1212 1213 dll_reset_mask |= MDLL_R300_RDCK__MRDCKB_RESET; 1214 + /* fall through */ 1213 1215 case 0: 1214 1216 dll_sleep_mask |= MDLL_R300_RDCK__MRDCKA_SLEEP; 1215 1217 dll_reset_mask |= MDLL_R300_RDCK__MRDCKA_RESET; ··· 1220 1218 case 1: 1221 1219 if (!(mc & 0x4)) 1222 1220 break; 1221 + /* fall through */ 1223 1222 case 2: 1224 1223 dll_sleep_mask |= MDLL_R300_RDCK__MRDCKD_SLEEP; 1225 1224 dll_reset_mask |= MDLL_R300_RDCK__MRDCKD_RESET;