dma-buf: consolidate dma_fence subclass checking
authorChristian König <christian.koenig@amd.com>
Wed, 19 Jan 2022 10:17:32 +0000 (11:17 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 8 Feb 2022 08:19:45 +0000 (09:19 +0100)
commit976b6d97c62347df3e686f60a5f455bb8ed6ea23
treebbbb3b16a0022dffaa0dfdbebadae1515e3dde82
parentea181a3494699f48e80687e3d467d443883ae0e9
dma-buf: consolidate dma_fence subclass checking

Consolidate the wrapper functions to check for dma_fence
subclasses in the dma_fence header.

This makes it easier to document and also check the different
requirements for fence containers in the subclasses.

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-2-christian.koenig@amd.com
include/linux/dma-fence-array.h
include/linux/dma-fence-chain.h
include/linux/dma-fence.h