diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-08-20 12:51:15 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-08-30 22:26:45 +0300 |
commit | 5f5c75bf1687d492d35fb37819508a270ba7a8f8 (patch) | |
tree | e9a8f8e46f40dfee4fa307fe4139a0e9db7f617d /drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | |
parent | a23abe1fbdc16358ca185b4681fef19ec75b79c3 (diff) | |
download | linux-5f5c75bf1687d492d35fb37819508a270ba7a8f8.tar.xz |
drm/amdgpu: Remove amdgpu_bo_list_array_entry()
Now that there is an explicit flexible array at the end of 'struct
amdgpu_bo_list', it can be used to remove amdgpu_bo_list_array_entry() and
simplify some macro.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c index c8f59a044286..6ea9ff22c281 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c @@ -87,7 +87,7 @@ int amdgpu_bo_list_create(struct amdgpu_device *adev, struct drm_file *filp, list->gws_obj = NULL; list->oa_obj = NULL; - array = amdgpu_bo_list_array_entry(list, 0); + array = list->entries; memset(array, 0, num_entries * sizeof(struct amdgpu_bo_list_entry)); for (i = 0; i < num_entries; ++i) { |