[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <678F3D1BB717D949B966B68EAEB446ED24EBDE6F@DGGEMM506-MBS.china.huawei.com>
Date: Sat, 30 Mar 2019 02:33:18 +0000
From: "Zengtao (B)" <prime.zeng@...ilicon.com>
To: Dan Carpenter <dan.carpenter@...cle.com>
CC: "labbott@...hat.com" <labbott@...hat.com>,
"sumit.semwal@...aro.org" <sumit.semwal@...aro.org>,
"devel@...verdev.osuosl.org" <devel@...verdev.osuosl.org>,
Todd Kjos <tkjos@...roid.com>,
"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
"linaro-mm-sig@...ts.linaro.org" <linaro-mm-sig@...ts.linaro.org>,
Arve Hjønnevåg <arve@...roid.com>,
Joel Fernandes <joel@...lfernandes.org>,
Martijn Coenen <maco@...roid.com>,
Christian Brauner <christian@...uner.io>
Subject: RE: [PATCH] staging: android: ion: refactory ion_alloc for kernel
driver use
>-----Original Message-----
>From: Dan Carpenter [mailto:dan.carpenter@...cle.com]
>Sent: Friday, March 29, 2019 7:03 PM
>To: Zengtao (B) <prime.zeng@...ilicon.com>
>Cc: labbott@...hat.com; sumit.semwal@...aro.org;
>devel@...verdev.osuosl.org; Todd Kjos <tkjos@...roid.com>; Greg
>Kroah-Hartman <gregkh@...uxfoundation.org>;
>linux-kernel@...r.kernel.org; dri-devel@...ts.freedesktop.org;
>linaro-mm-sig@...ts.linaro.org; Arve Hjønnevåg <arve@...roid.com>;
>Joel Fernandes <joel@...lfernandes.org>; Martijn Coenen
><maco@...roid.com>; Christian Brauner <christian@...uner.io>
>Subject: Re: [PATCH] staging: android: ion: refactory ion_alloc for kernel
>driver use
>
>If we're going to export ion_alloc() for other drivers to use then let's make
>an ion_free() helper function as well.
>
Good catch, thanks.
Regards
Zengtao
>void ion_free(struct dma_buf *dmabuf)
>{
> dma_buf_put(dmabuf);
>}
>
>regards,
>dan carpenter
Powered by blists - more mailing lists