Skip to contentSkip to conversation

dma-buf/dma-fence: improve doc for dma_fence_add_callback()

PATCH In review Gustavo Padovan 3 participants 3 messages Feb 15, 2017 – Feb 16, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dma-buf/dma-fence: improve doc for dma_fence_add_callback()

From: Gustavo Padovan <[email protected]>

Document return values for this function.

---
 drivers/dma-buf/dma-fence.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/dma-buf/dma-fence.c +2 -0
index d1f1f45..809b397 100644
@@ -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)
Signature · 6 lines
2.9.3

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Gustavo Padovan

From: Gustavo Padovan <[email protected]>

Document return values for this function.

-Chris

Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer
#2 lore raw

Hi Gustavo,

Quoted 9 lines · Chris Wilson
Quoted 5 lines · Gustavo Padovan

From: Gustavo Padovan <[email protected]>

Document return values for this function.

-Chris

Thanks, pushed to drm-misc.

Quoted 6 lines

--
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel