Commit 21dce3f4 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Ben Skeggs

drm/nouveau/devinit/nv04: mark expected switch fall-throughs

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: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 1a5c8164
...@@ -119,11 +119,11 @@ powerctrl_1_shift(int chip_version, int reg) ...@@ -119,11 +119,11 @@ powerctrl_1_shift(int chip_version, int reg)
switch (reg) { switch (reg) {
case 0x680520: case 0x680520:
shift += 4; shift += 4; /* fall through */
case 0x680508: case 0x680508:
shift += 4; shift += 4; /* fall through */
case 0x680504: case 0x680504:
shift += 4; shift += 4; /* fall through */
case 0x680500: case 0x680500:
shift += 4; shift += 4;
} }
...@@ -245,11 +245,11 @@ setPLL_double_highregs(struct nvkm_devinit *init, u32 reg1, ...@@ -245,11 +245,11 @@ setPLL_double_highregs(struct nvkm_devinit *init, u32 reg1,
switch (reg1) { switch (reg1) {
case 0x680504: case 0x680504:
shift_c040 += 2; shift_c040 += 2; /* fall through */
case 0x680500: case 0x680500:
shift_c040 += 2; shift_c040 += 2; /* fall through */
case 0x680520: case 0x680520:
shift_c040 += 2; shift_c040 += 2; /* fall through */
case 0x680508: case 0x680508:
shift_c040 += 2; shift_c040 += 2;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment