diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-11-02 16:06:25 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2017-11-02 19:12:10 -0400 |
commit | 21dce3f4643eb541c7058e37b89a44a573ac95f6 (patch) | |
tree | a69c73b88e6bb6df6691c823526fd11d1731be70 | |
parent | 1a5c8164b335fb841fd9b41cd3d659de2f1c912b (diff) |
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: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c index 158977f8a6e6..c3dae05348eb 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c | |||
@@ -119,11 +119,11 @@ powerctrl_1_shift(int chip_version, int reg) | |||
119 | 119 | ||
120 | switch (reg) { | 120 | switch (reg) { |
121 | case 0x680520: | 121 | case 0x680520: |
122 | shift += 4; | 122 | shift += 4; /* fall through */ |
123 | case 0x680508: | 123 | case 0x680508: |
124 | shift += 4; | 124 | shift += 4; /* fall through */ |
125 | case 0x680504: | 125 | case 0x680504: |
126 | shift += 4; | 126 | shift += 4; /* fall through */ |
127 | case 0x680500: | 127 | case 0x680500: |
128 | shift += 4; | 128 | shift += 4; |
129 | } | 129 | } |
@@ -245,11 +245,11 @@ setPLL_double_highregs(struct nvkm_devinit *init, u32 reg1, | |||
245 | 245 | ||
246 | switch (reg1) { | 246 | switch (reg1) { |
247 | case 0x680504: | 247 | case 0x680504: |
248 | shift_c040 += 2; | 248 | shift_c040 += 2; /* fall through */ |
249 | case 0x680500: | 249 | case 0x680500: |
250 | shift_c040 += 2; | 250 | shift_c040 += 2; /* fall through */ |
251 | case 0x680520: | 251 | case 0x680520: |
252 | shift_c040 += 2; | 252 | shift_c040 += 2; /* fall through */ |
253 | case 0x680508: | 253 | case 0x680508: |
254 | shift_c040 += 2; | 254 | shift_c040 += 2; |
255 | } | 255 | } |