dma-buf: Warn about dma_fence_chain container rules v2
authorChristian König <christian.koenig@amd.com>
Wed, 19 Jan 2022 13:37:41 +0000 (14:37 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 8 Feb 2022 08:20:39 +0000 (09:20 +0100)
commit270b48bb8da7452b4357d8726933beba72652310
treee36fe572131515969f3fa2f6f14a5a83afb80628
parent0fd9803b985e5d94e2b9f1848a12756b7848b62d
dma-buf: Warn about dma_fence_chain container rules v2

Chaining of dma_fence_chain objects is only allowed through the prev
fence and not through the contained fence.

Warn about that when we create a dma_fence_chain.

v2: fix comment style

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