dma-fence: Make ->wait callback optional
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 May 2018 14:25:52 +0000 (16:25 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 3 Jul 2018 11:12:57 +0000 (13:12 +0200)
commit418cc6ca06071e7b7d75c0d525d80a6f49a763d6
tree12a8b278e184d4b5350248a47ce2f5208ea8a100
parent070473bcf703366e9acb14e172d5b6563cc07a26
dma-fence: Make ->wait callback optional

Almost everyone uses dma_fence_default_wait.

v2: Also remove the BUG_ON(!ops->wait) (Chris).

Reviewed-by: Christian König <christian.koenig@amd.com> (v1)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Gustavo Padovan <gustavo@padovan.org>
Cc: linux-media@vger.kernel.org
Cc: linaro-mm-sig@lists.linaro.org
Link: https://patchwork.freedesktop.org/patch/msgid/20180503142603.28513-5-daniel.vetter@ffwll.ch
drivers/dma-buf/dma-fence-array.c
drivers/dma-buf/dma-fence.c
drivers/dma-buf/sw_sync.c
include/linux/dma-fence.h