diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-20 12:24:41 -0600 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-11-24 12:05:36 -0500 |
commit | 9304ca4de0b9522b5c01efec20b9649c2c069697 (patch) | |
tree | be2147e258dabe2ef52152fe95b0dc006f39e539 /drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | |
parent | af5bbf93101dda20f5d89437ed00696704a65c51 (diff) | |
download | lwn-9304ca4de0b9522b5c01efec20b9649c2c069697.tar.gz lwn-9304ca4de0b9522b5c01efec20b9649c2c069697.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index 0c3421d587e8..cb5b4623566d 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c @@ -502,6 +502,7 @@ static int gmc_v9_0_vm_fault_interrupt_state(struct amdgpu_device *adev, WREG32(reg, tmp); } } + break; default: break; } |