From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from perceval.ideasonboard.com ([213.167.242.64]:38930 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726670AbeIKTwf (ORCPT ); Tue, 11 Sep 2018 15:52:35 -0400 From: Laurent Pinchart To: Gerd Hoffmann Cc: dri-devel@lists.freedesktop.org, daniel@ffwll.ch, Sumit Semwal , "open list:DMA BUFFER SHARING FRAMEWORK" , "moderated list:DMA BUFFER SHARING FRAMEWORK" , open list Subject: Re: [PATCH v2 05/13] udmabuf: constify udmabuf_create args Date: Tue, 11 Sep 2018 17:53:06 +0300 Message-ID: <4625619.OKDULqJxva@avalon> In-Reply-To: <20180911134216.9760-6-kraxel@redhat.com> References: <20180911134216.9760-1-kraxel@redhat.com> <20180911134216.9760-6-kraxel@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-media-owner@vger.kernel.org List-ID: Hi Gerd, Thank you for the patch. On Tuesday, 11 September 2018 16:42:08 EEST Gerd Hoffmann wrote: > Reported-by: Laurent Pinchart > Signed-off-by: Gerd Hoffmann > Reviewed-by: Laurent Pinchart > Acked-by: Daniel Vetter > --- > drivers/dma-buf/udmabuf.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c > index e3560e840d..4167da8141 100644 > --- a/drivers/dma-buf/udmabuf.c > +++ b/drivers/dma-buf/udmabuf.c > @@ -116,8 +116,8 @@ static const struct dma_buf_ops udmabuf_ops = { > #define SEALS_WANTED (F_SEAL_SHRINK) > #define SEALS_DENIED (F_SEAL_WRITE) > > -static long udmabuf_create(struct udmabuf_create_list *head, > - struct udmabuf_create_item *list) > +static long udmabuf_create(const struct udmabuf_create_list *head, > + const const struct udmabuf_create_item *list) Even if you really want to make it const, a single const should suffice :-) > { > DEFINE_DMA_BUF_EXPORT_INFO(exp_info); > struct file *memfd = NULL; -- Regards, Laurent Pinchart