diff options
author | Christian König <christian.koenig@amd.com> | 2021-11-03 13:35:14 +0100 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2022-04-05 09:53:50 +0200 |
commit | 71d637823cac7748079a912e0373476c7cf6f985 (patch) | |
tree | ac4f51f9170b998e4ed50f69376ee4306bd74850 /include | |
parent | drm/nouveau: stop using dma_resv_excl_fence (diff) | |
download | linux-dev-71d637823cac7748079a912e0373476c7cf6f985.tar.xz linux-dev-71d637823cac7748079a912e0373476c7cf6f985.zip |
dma-buf: finally make dma_resv_excl_fence private v2
Drivers should never touch this directly.
v2: fix rebase clash
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220321135856.1331-10-christian.koenig@amd.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dma-resv.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/linux/dma-resv.h b/include/linux/dma-resv.h index 233ed4f14d9e..ecb697d4d861 100644 --- a/include/linux/dma-resv.h +++ b/include/linux/dma-resv.h @@ -411,23 +411,6 @@ static inline void dma_resv_unlock(struct dma_resv *obj) ww_mutex_unlock(&obj->lock); } -/** - * dma_resv_excl_fence - return the object's exclusive fence - * @obj: the reservation object - * - * Returns the exclusive fence (if any). Caller must either hold the objects - * through dma_resv_lock() or the RCU read side lock through rcu_read_lock(), - * or one of the variants of each - * - * RETURNS - * The exclusive fence or NULL - */ -static inline struct dma_fence * -dma_resv_excl_fence(struct dma_resv *obj) -{ - return rcu_dereference_check(obj->fence_excl, dma_resv_held(obj)); -} - void dma_resv_init(struct dma_resv *obj); void dma_resv_fini(struct dma_resv *obj); int dma_resv_reserve_shared(struct dma_resv *obj, unsigned int num_fences); |