]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: remove amdgpu_bo_list_clone
authorChristian König <christian.koenig@amd.com>
Thu, 20 Aug 2015 15:36:28 +0000 (17:36 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Aug 2015 14:49:12 +0000 (10:49 -0400)
Not used any more.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c

index 0088af1efd54a03ac6e3b6ede04eb0294ca1b9e5..a2d5cf7df56f4d3b36071078fc46cf2376db5f11 100644 (file)
@@ -1083,8 +1083,6 @@ struct amdgpu_bo_list {
        struct amdgpu_bo_list_entry *array;
 };
 
-struct amdgpu_bo_list *
-amdgpu_bo_list_clone(struct amdgpu_bo_list *list);
 struct amdgpu_bo_list *
 amdgpu_bo_list_get(struct amdgpu_fpriv *fpriv, int id);
 void amdgpu_bo_list_put(struct amdgpu_bo_list *list);
index 7eed523bf28f241421f814f6bfbd685c98a5bf81..f82a2dd83874dea20c7e7b2a6ddf8aee74e0fe1d 100644 (file)
@@ -62,39 +62,6 @@ static int amdgpu_bo_list_create(struct amdgpu_fpriv *fpriv,
        return 0;
 }
 
-struct amdgpu_bo_list *
-amdgpu_bo_list_clone(struct amdgpu_bo_list *list)
-{
-       struct amdgpu_bo_list *result;
-       unsigned i;
-
-       result = kmalloc(sizeof(struct amdgpu_bo_list), GFP_KERNEL);
-       if (!result)
-               return NULL;
-
-       result->array = drm_calloc_large(list->num_entries,
-               sizeof(struct amdgpu_bo_list_entry));
-       if (!result->array) {
-               kfree(result);
-               return NULL;
-       }
-
-       mutex_init(&result->lock);
-       result->gds_obj = list->gds_obj;
-       result->gws_obj = list->gws_obj;
-       result->oa_obj = list->oa_obj;
-       result->has_userptr = list->has_userptr;
-       result->num_entries = list->num_entries;
-
-       memcpy(result->array, list->array, list->num_entries *
-              sizeof(struct amdgpu_bo_list_entry));
-
-       for (i = 0; i < result->num_entries; ++i)
-               amdgpu_bo_ref(result->array[i].robj);
-
-       return result;
-}
-
 static void amdgpu_bo_list_destroy(struct amdgpu_fpriv *fpriv, int id)
 {
        struct amdgpu_bo_list *list;