dma-buf: add dma_fence_chain_contained helper
authorChristian König <christian.koenig@amd.com>
Thu, 20 Jan 2022 10:42:40 +0000 (11:42 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 8 Feb 2022 08:25:16 +0000 (09:25 +0100)
commit18f5fad275efef015226ee4f90eae34d8f44aa5e
treec8ed7d50c0814c29f1c3abb82054b92a4bf3bcf7
parent68129f431faab376c1dd1c701f2fb999eea53383
dma-buf: add dma_fence_chain_contained helper

It's a reoccurring pattern that we need to extract the fence
from a dma_fence_chain object. Add a helper for this.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220204100429.2049-6-christian.koenig@amd.com
drivers/dma-buf/dma-fence-chain.c
include/linux/dma-fence-chain.h