diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-02-19 22:31:50 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-03-19 16:03:53 -0400 |
commit | 1e608013490a271bd0b3a6b025ee079ca098d647 (patch) | |
tree | 7d20ee9718e689705cc81346df6841bbc15758f0 /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | |
parent | de6ee704d100c969e4a2ea7edbeebbde63d61e5f (diff) |
drm/amdgpu: remove set but not used variables 'vm, bo'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c: In function 'update_gpuvm_pte':
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:840:20: warning:
variable 'bo' set but not used [-Wunused-but-set-variable]
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:838:20: warning:
variable 'vm' set but not used [-Wunused-but-set-variable]
They're never used since introduction in a46a2cd103a8 ("drm/amdgpu: Add GPUVM
memory management functions for KFD")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c index 31e3953dcb6e..f8104760f1e6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | |||
@@ -719,13 +719,7 @@ static int update_gpuvm_pte(struct amdgpu_device *adev, | |||
719 | struct amdgpu_sync *sync) | 719 | struct amdgpu_sync *sync) |
720 | { | 720 | { |
721 | int ret; | 721 | int ret; |
722 | struct amdgpu_vm *vm; | 722 | struct amdgpu_bo_va *bo_va = entry->bo_va; |
723 | struct amdgpu_bo_va *bo_va; | ||
724 | struct amdgpu_bo *bo; | ||
725 | |||
726 | bo_va = entry->bo_va; | ||
727 | vm = bo_va->base.vm; | ||
728 | bo = bo_va->base.bo; | ||
729 | 723 | ||
730 | /* Update the page tables */ | 724 | /* Update the page tables */ |
731 | ret = amdgpu_vm_bo_update(adev, bo_va, false); | 725 | ret = amdgpu_vm_bo_update(adev, bo_va, false); |