[PATCH] staging: android: ion: refactory ion_alloc for kernel driver use

Zengtao (B) prime.zeng at hisilicon.com
Sat Mar 30 02:33:18 UTC 2019


>-----Original Message-----
>From: Dan Carpenter [mailto:dan.carpenter at oracle.com]
>Sent: Friday, March 29, 2019 7:03 PM
>To: Zengtao (B) <prime.zeng at hisilicon.com>
>Cc: labbott at redhat.com; sumit.semwal at linaro.org;
>devel at driverdev.osuosl.org; Todd Kjos <tkjos at android.com>; Greg
>Kroah-Hartman <gregkh at linuxfoundation.org>;
>linux-kernel at vger.kernel.org; dri-devel at lists.freedesktop.org;
>linaro-mm-sig at lists.linaro.org; Arve Hjønnevåg <arve at android.com>;
>Joel Fernandes <joel at joelfernandes.org>; Martijn Coenen
><maco at android.com>; Christian Brauner <christian at brauner.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



More information about the dri-devel mailing list