summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
diff options
context:
space:
mode:
authorRex Zhu2018-08-20 14:19:18 +0200
committerAlex Deucher2018-08-27 18:11:11 +0200
commita00ead2b394bd591159261f4e8c08819ff4f45f4 (patch)
treebeaa47d83a3e2f9d88842f705cde361ef25b5207 /drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
parentdrm/amdgpu: rework ctx entity creation (diff)
downloadkernel-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.c2
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;
}
}