drm/amdgpu: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:24:41 +0000 (12:24 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Nov 2020 17:05:36 +0000 (12:05 -0500)
commit9304ca4de0b9522b5c01efec20b9649c2c069697
treebe2147e258dabe2ef52152fe95b0dc006f39e539
parentaf5bbf93101dda20f5d89437ed00696704a65c51
drm/amdgpu: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of just
letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdgpu/vi.c