diff options
| author | Yunxiang Li <[email protected]> | 2024-12-19 15:14:10 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2024-12-19 15:56:25 +0000 |
| commit | a541a6e865ecd8dfd8df6eeb134cc20e7139d329 (patch) | |
| tree | fa03973b396ea636bf166b912b3b856f136a81a6 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | Documentation/gpu: Clarify drm memory stats definition (diff) | |
| download | kernel-a541a6e865ecd8dfd8df6eeb134cc20e7139d329.tar.gz kernel-a541a6e865ecd8dfd8df6eeb134cc20e7139d329.zip | |
drm/amdgpu: remove unused function parameter
amdgpu_vm_bo_invalidate doesn't use the adev parameter and not all
callers have a reference to adev handy, so remove it for cleanliness.
Signed-off-by: Yunxiang Li <[email protected]>
Reviewed-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 6852d50caa89..a9aaf8f7cb4f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c @@ -1150,7 +1150,6 @@ void amdgpu_bo_move_notify(struct ttm_buffer_object *bo, bool evict, struct ttm_resource *new_mem) { - struct amdgpu_device *adev = amdgpu_ttm_adev(bo->bdev); struct ttm_resource *old_mem = bo->resource; struct amdgpu_bo *abo; @@ -1158,7 +1157,7 @@ void amdgpu_bo_move_notify(struct ttm_buffer_object *bo, return; abo = ttm_to_amdgpu_bo(bo); - amdgpu_vm_bo_invalidate(adev, abo, evict); + amdgpu_vm_bo_invalidate(abo, evict); amdgpu_bo_kunmap(abo); |
