dma-fence: Wrap querying the fence->status
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 Jan 2017 14:12:21 +0000 (14:12 +0000)
committerSumit Semwal <sumit.semwal@linaro.org>
Mon, 9 Jan 2017 14:36:58 +0000 (20:06 +0530)
commitd6c99f4bf093a58d3ab47caaec74b81f18bc4e3f
tree246eff35230c79ce6560cf7fe23ce453a6ed62bb
parent83dd1376fd92f33bdeca9e83d479534a4e7f870b
dma-fence: Wrap querying the fence->status

The fence->status is an optional field that is only valid once the fence
has been signaled. (Driver may fill the fence->status with an error code
prior to calling dma_fence_signal().) Given the restriction upon its
validity, wrap querying of the fence->status into a helper
dma_fence_get_status().

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170104141222.6992-2-chris@chris-wilson.co.uk
drivers/dma-buf/dma-fence.c
drivers/dma-buf/sync_debug.c
drivers/dma-buf/sync_file.c
include/linux/dma-fence.h