drm/nouveau/devinit/nv04: mark expected switch fall-throughs
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 2 Nov 2017 20:06:25 +0000 (15:06 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 2 Nov 2017 23:12:10 +0000 (09:12 +1000)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 143119
Addresses-Coverity-ID: 143120
Addresses-Coverity-ID: 143121
Addresses-Coverity-ID: 143122
Addresses-Coverity-ID: 143123
Addresses-Coverity-ID: 143124
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c

index 158977f8a6e6f35f1de5c0579def5d36883ed141..c3dae05348eb595ac1928c6888d7cd283a783436 100644 (file)
@@ -119,11 +119,11 @@ powerctrl_1_shift(int chip_version, int reg)
 
        switch (reg) {
        case 0x680520:
-               shift += 4;
+               shift += 4; /* fall through */
        case 0x680508:
-               shift += 4;
+               shift += 4; /* fall through */
        case 0x680504:
-               shift += 4;
+               shift += 4; /* fall through */
        case 0x680500:
                shift += 4;
        }
@@ -245,11 +245,11 @@ setPLL_double_highregs(struct nvkm_devinit *init, u32 reg1,
 
                switch (reg1) {
                case 0x680504:
-                       shift_c040 += 2;
+                       shift_c040 += 2; /* fall through */
                case 0x680500:
-                       shift_c040 += 2;
+                       shift_c040 += 2; /* fall through */
                case 0x680520:
-                       shift_c040 += 2;
+                       shift_c040 += 2; /* fall through */
                case 0x680508:
                        shift_c040 += 2;
                }