diff options
author | Kent Russell <kent.russell@amd.com> | 2019-01-03 08:33:15 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-01-14 15:04:24 -0500 |
commit | c4312c27c826cb2b05dbbda614fa3c735c2c4cca (patch) | |
tree | e58935443bf775e0d8f45210e7c53eb881a690e9 /drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | |
parent | c6064de4b7344e705b1b4ac66fa89ea1da5760d0 (diff) |
drm/amdgpu: Cleanup 2 compiler warnings
These 2 variables are unused now, so remove their references.
Fixes: e4ae0fc drm/amdgpu: implement gfx8 post_soft_reset
Fixes: 5e01c09 drm/amdgpu/gfx_v8_0: Reorder the gfx, kiq and kcq rings
test sequence
Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index 164ffc91b645..57cb3a51bda7 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | |||
@@ -4233,7 +4233,6 @@ static int gfx_v8_0_cp_gfx_resume(struct amdgpu_device *adev) | |||
4233 | u32 tmp; | 4233 | u32 tmp; |
4234 | u32 rb_bufsz; | 4234 | u32 rb_bufsz; |
4235 | u64 rb_addr, rptr_addr, wptr_gpu_addr; | 4235 | u64 rb_addr, rptr_addr, wptr_gpu_addr; |
4236 | int r; | ||
4237 | 4236 | ||
4238 | /* Set the write pointer delay */ | 4237 | /* Set the write pointer delay */ |
4239 | WREG32(mmCP_RB_WPTR_DELAY, 0); | 4238 | WREG32(mmCP_RB_WPTR_DELAY, 0); |
@@ -5075,7 +5074,6 @@ static int gfx_v8_0_post_soft_reset(void *handle) | |||
5075 | { | 5074 | { |
5076 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; | 5075 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; |
5077 | u32 grbm_soft_reset = 0; | 5076 | u32 grbm_soft_reset = 0; |
5078 | struct amdgpu_ring *ring; | ||
5079 | 5077 | ||
5080 | if ((!adev->gfx.grbm_soft_reset) && | 5078 | if ((!adev->gfx.grbm_soft_reset) && |
5081 | (!adev->gfx.srbm_soft_reset)) | 5079 | (!adev->gfx.srbm_soft_reset)) |