From 466e3c0c24769c99fd0ad132e7172d708a94f095 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Mon, 20 Mar 2023 11:19:15 +0100 Subject: [PATCH] amdgpu: remove va::dev member MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is unused so drop it. Reviewed-by: Marek Olšák --- amdgpu/amdgpu_internal.h | 1 - amdgpu/amdgpu_vamgr.c | 1 - 2 files changed, 2 deletions(-) diff --git a/amdgpu/amdgpu_internal.h b/amdgpu/amdgpu_internal.h index 37a7c9d5..2834c9c6 100644 --- a/amdgpu/amdgpu_internal.h +++ b/amdgpu/amdgpu_internal.h @@ -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; diff --git a/amdgpu/amdgpu_vamgr.c b/amdgpu/amdgpu_vamgr.c index 077a9fc8..28a7a7d4 100644 --- a/amdgpu/amdgpu_vamgr.c +++ b/amdgpu/amdgpu_vamgr.c @@ -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;