diff options
author | Rex Zhu | 2018-08-20 14:19:18 +0200 |
---|---|---|
committer | Alex Deucher | 2018-08-27 18:11:11 +0200 |
commit | a00ead2b394bd591159261f4e8c08819ff4f45f4 (patch) | |
tree | beaa47d83a3e2f9d88842f705cde361ef25b5207 /drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | |
parent | drm/amdgpu: rework ctx entity creation (diff) | |
download | kernel-qcow2-linux-a00ead2b394bd591159261f4e8c08819ff4f45f4.tar.gz kernel-qcow2-linux-a00ead2b394bd591159261f4e8c08819ff4f45f4.tar.xz kernel-qcow2-linux-a00ead2b394bd591159261f4e8c08819ff4f45f4.zip |
drm/amdgpu: Fix compile warning
In function ‘gfx_v9_0_check_fw_write_wait’:
warning: enumeration value ‘CHIP_TAHITI’ not handled in switch [-Wswitch]
Always add default case in case there is no match
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 0cba430712d1..44707f94b2c5 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -532,6 +532,8 @@ static void gfx_v9_0_check_fw_write_wait(struct amdgpu_device *adev) (adev->gfx.mec_feature_version >= 42)) adev->gfx.mec_fw_write_wait = true; break; + default: + break; } } |