Skip to content

Commit 49c39ec

Browse files
dma-buf: nuke dma_resv_get_excl_unlocked
Heureka, that's finally not used any more. Signed-off-by: Christian König <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent fa78e36 commit 49c39ec

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

include/linux/dma-resv.h

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -440,32 +440,6 @@ dma_resv_excl_fence(struct dma_resv *obj)
440440
return rcu_dereference_check(obj->fence_excl, dma_resv_held(obj));
441441
}
442442

443-
/**
444-
* dma_resv_get_excl_unlocked - get the reservation object's
445-
* exclusive fence, without lock held.
446-
* @obj: the reservation object
447-
*
448-
* If there is an exclusive fence, this atomically increments it's
449-
* reference count and returns it.
450-
*
451-
* RETURNS
452-
* The exclusive fence or NULL if none
453-
*/
454-
static inline struct dma_fence *
455-
dma_resv_get_excl_unlocked(struct dma_resv *obj)
456-
{
457-
struct dma_fence *fence;
458-
459-
if (!rcu_access_pointer(obj->fence_excl))
460-
return NULL;
461-
462-
rcu_read_lock();
463-
fence = dma_fence_get_rcu_safe(&obj->fence_excl);
464-
rcu_read_unlock();
465-
466-
return fence;
467-
}
468-
469443
/**
470444
* dma_resv_shared_list - get the reservation object's shared fence list
471445
* @obj: the reservation object

0 commit comments

Comments
 (0)