amdgpu: remove va::dev member
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 20 Mar 2023 10:19:15 +0000 (11:19 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 24 Mar 2023 10:25:10 +0000 (11:25 +0100)
This is unused so drop it.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
amdgpu/amdgpu_internal.h
amdgpu/amdgpu_vamgr.c

index 37a7c9d..2834c9c 100644 (file)
@@ -57,7 +57,6 @@ struct amdgpu_bo_va_mgr {
 };
 
 struct amdgpu_va {
-       amdgpu_device_handle dev;
        uint64_t address;
        uint64_t size;
        enum amdgpu_gpu_va_range range;
index 077a9fc..28a7a7d 100644 (file)
@@ -274,7 +274,6 @@ drm_public int amdgpu_va_range_alloc(amdgpu_device_handle dev,
                        amdgpu_vamgr_free_va(vamgr, *va_base_allocated, size);
                        return -ENOMEM;
                }
-               va->dev = dev;
                va->address = *va_base_allocated;
                va->size = size;
                va->range = va_range_type;