]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe0c572146171837eeecf522a79ec9205bf45140
treec8ed7d50c0814c29f1c3abb82054b92a4bf3bcf7
parent31aa2b0a6faa446c45c998233a4ed7ae4c17bf77
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