amdgpu: amdgpu_bo_inc_ref don't return dummy int

Signed-off-by: Qiang Yu <Qiang.Yu@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
main
Qiang Yu 2018-09-03 18:06:02 +08:00 committed by Christian König
parent 937d62ea69
commit 580bd83fb4
3 changed files with 3 additions and 7 deletions

View File

@ -15,8 +15,8 @@ amdgpu_bo_cpu_map
amdgpu_bo_cpu_unmap amdgpu_bo_cpu_unmap
amdgpu_bo_export amdgpu_bo_export
amdgpu_bo_free amdgpu_bo_free
amdgpu_bo_inc_ref
amdgpu_bo_import amdgpu_bo_import
amdgpu_bo_inc_ref
amdgpu_bo_list_create amdgpu_bo_list_create
amdgpu_bo_list_destroy amdgpu_bo_list_destroy
amdgpu_bo_list_update amdgpu_bo_list_update

View File

@ -725,13 +725,10 @@ int amdgpu_bo_free(amdgpu_bo_handle buf_handle);
* *
* \param bo - \c [in] Buffer object handle to increase the reference count * \param bo - \c [in] Buffer object handle to increase the reference count
* *
* \return 0 on success\n
* <0 - Negative POSIX Error code
*
* \sa amdgpu_bo_alloc(), amdgpu_bo_free() * \sa amdgpu_bo_alloc(), amdgpu_bo_free()
* *
*/ */
int amdgpu_bo_inc_ref(amdgpu_bo_handle bo); void amdgpu_bo_inc_ref(amdgpu_bo_handle bo);
/** /**
* Request CPU access to GPU accessable memory * Request CPU access to GPU accessable memory

View File

@ -438,10 +438,9 @@ int amdgpu_bo_free(amdgpu_bo_handle buf_handle)
return 0; return 0;
} }
int amdgpu_bo_inc_ref(amdgpu_bo_handle bo) void amdgpu_bo_inc_ref(amdgpu_bo_handle bo)
{ {
atomic_inc(&bo->refcount); atomic_inc(&bo->refcount);
return 0;
} }
int amdgpu_bo_cpu_map(amdgpu_bo_handle bo, void **cpu) int amdgpu_bo_cpu_map(amdgpu_bo_handle bo, void **cpu)