From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753739AbcKHPgz (ORCPT ); Tue, 8 Nov 2016 10:36:55 -0500 Received: from foss.arm.com ([217.140.101.70]:34226 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752084AbcKHPgy (ORCPT ); Tue, 8 Nov 2016 10:36:54 -0500 Date: Tue, 8 Nov 2016 15:36:49 +0000 From: Brian Starkey To: Gustavo Padovan Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Daniel Stone , Daniel Vetter , Rob Clark , Greg Hackmann , John Harrison , laurent.pinchart@ideasonboard.com, seanpaul@google.com, marcheu@google.com, m.chehab@samsung.com, Sumit Semwal , Maarten Lankhorst , Gustavo Padovan Subject: Re: [PATCH v7 3/3] drm/fence: add out-fences support Message-ID: <20161108153649.GB26065@e106950-lin.cambridge.arm.com> References: <1478588090-8664-1-git-send-email-gustavo@padovan.org> <1478588090-8664-4-git-send-email-gustavo@padovan.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1478588090-8664-4-git-send-email-gustavo@padovan.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 08, 2016 at 03:54:50PM +0900, Gustavo Padovan wrote: >From: Gustavo Padovan > >+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