From: Gustavo Padovan Date: Wed, 15 Feb 2017 17:57:25 +0000 (-0200) Subject: dma-buf/dma-fence: improve doc for dma_fence_add_callback() X-Git-Tag: v4.12-rc1~116^2~35^2~101 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f642de16c86e9f31d084aa98a50d3a2c923450c2;p=karo-tx-linux.git dma-buf/dma-fence: improve doc for dma_fence_add_callback() Document return values for this function. Signed-off-by: Gustavo Padovan Reviewed-by: Chris Wilson Signed-off-by: Sumit Semwal Link: http://patchwork.freedesktop.org/patch/msgid/20170215175725.6692-1-gustavo@padovan.org --- diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c index d1f1f456f5c4..809b397e915f 100644 --- a/drivers/dma-buf/dma-fence.c +++ b/drivers/dma-buf/dma-fence.c @@ -239,6 +239,8 @@ EXPORT_SYMBOL(dma_fence_enable_sw_signaling); * after it signals with dma_fence_signal. The callback itself can be called * from irq context. * + * Returns 0 in case of success, -ENOENT if the fence is already signaled + * and -EINVAL in case of error. */ int dma_fence_add_callback(struct dma_fence *fence, struct dma_fence_cb *cb, dma_fence_func_t func)