]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf/sync-file: fix warning about fence containers
authorChristian König <christian.koenig@amd.com>
Fri, 11 Mar 2022 09:32:26 +0000 (10:32 +0100)
committerChristian König <christian.koenig@amd.com>
Fri, 25 Mar 2022 13:18:29 +0000 (14:18 +0100)
commit1bbf9e5b71664f56d27bdb1316aa9c9a6dce2052
treed08ee94c47f5d90bb7f87382266f2acdac95c920
parent388756d63fab3acebc5360686118d0c1a1baef98
dma-buf/sync-file: fix warning about fence containers

The dma_fence_chain containers can show up in sync_files as well resulting in
warnings that those can't be added to dma_fence_array containers when merging
multiple sync_files together.

Solve this by using the dma_fence_unwrap iterator to deep dive into the
contained fences and then add those flatten out into a dma_fence_array.

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/20220311110244.1245-2-christian.koenig@amd.com
drivers/dma-buf/sync_file.c