Commit 580bd83f authored by Qiang Yu's avatar Qiang Yu Committed by Christian König
Browse files

amdgpu: amdgpu_bo_inc_ref don't return dummy int


Signed-off-by: default avatarQiang Yu <Qiang.Yu@amd.com>
Reviewed-by: Michel Dänzer's avatarMichel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König's avatarChristian König <christian.koenig@amd.com>
parent 937d62ea
......@@ -15,8 +15,8 @@ amdgpu_bo_cpu_map
amdgpu_bo_cpu_unmap
amdgpu_bo_export
amdgpu_bo_free
amdgpu_bo_inc_ref
amdgpu_bo_import
amdgpu_bo_inc_ref
amdgpu_bo_list_create
amdgpu_bo_list_destroy
amdgpu_bo_list_update
......
......@@ -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
*
* \return 0 on success\n
* <0 - Negative POSIX Error code
*
* \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
......
......@@ -438,10 +438,9 @@ int amdgpu_bo_free(amdgpu_bo_handle buf_handle)
return 0;
}
int amdgpu_bo_inc_ref(amdgpu_bo_handle bo)
void amdgpu_bo_inc_ref(amdgpu_bo_handle bo)
{
atomic_inc(&bo->refcount);
return 0;
}
int amdgpu_bo_cpu_map(amdgpu_bo_handle bo, void **cpu)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment