diff options
author | Christian König <christian.koenig@amd.com> | 2021-09-13 14:21:25 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2021-11-17 14:44:29 +0100 |
commit | 49c39ec4670a8f045729e3717af2e1a74caf89a5 (patch) | |
tree | 0ffabba715ae8a1cc1fbfeb82929095ee43695d8 /include/linux/dma-resv.h | |
parent | fa78e367a24977d76832fda6790e9e1c35788f80 (diff) |
dma-buf: nuke dma_resv_get_excl_unlocked
Heureka, that's finally not used any more.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210917123513.1106-27-christian.koenig@amd.com
Diffstat (limited to 'include/linux/dma-resv.h')
-rw-r--r-- | include/linux/dma-resv.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/include/linux/dma-resv.h b/include/linux/dma-resv.h index 09c6063b199a..eebf04325b34 100644 --- a/include/linux/dma-resv.h +++ b/include/linux/dma-resv.h @@ -441,32 +441,6 @@ dma_resv_excl_fence(struct dma_resv *obj) } /** - * dma_resv_get_excl_unlocked - get the reservation object's - * exclusive fence, without lock held. - * @obj: the reservation object - * - * If there is an exclusive fence, this atomically increments it's - * reference count and returns it. - * - * RETURNS - * The exclusive fence or NULL if none - */ -static inline struct dma_fence * -dma_resv_get_excl_unlocked(struct dma_resv *obj) -{ - struct dma_fence *fence; - - if (!rcu_access_pointer(obj->fence_excl)) - return NULL; - - rcu_read_lock(); - fence = dma_fence_get_rcu_safe(&obj->fence_excl); - rcu_read_unlock(); - - return fence; -} - -/** * dma_resv_shared_list - get the reservation object's shared fence list * @obj: the reservation object * |