Re: [PATCH v7 3/3] drm/fence: add out-fences support

From: Brian Starkey
Date: Tue Nov 08 2016 - 10:36:58 EST


On Tue, Nov 08, 2016 at 03:54:50PM +0900, Gustavo Padovan wrote:
From: Gustavo Padovan <gustavo.padovan@xxxxxxxxxxxxxxx>

+static struct dma_fence *get_crtc_fence(struct drm_crtc *crtc,
+ struct drm_crtc_state *crtc_state)
+{
+ struct dma_fence *fence;
+
+ fence = kzalloc(sizeof(*fence), GFP_KERNEL);
+ if (!fence)
+ return NULL;
+
+ dma_fence_init(fence, &drm_crtc_fence_ops, &crtc->fence_lock,
+ crtc->fence_context, ++crtc->fence_seqno);
+
+ return fence;
+}
+

crtc_state is unused in this function.

-Brian