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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>-----Original Message-----
>From: Dan Carpenter [mailto:dan.carpenter@xxxxxxxxxx]
>Sent: Friday, March 29, 2019 7:03 PM
>To: Zengtao (B) <prime.zeng@xxxxxxxxxxxxx>
>Cc: labbott@xxxxxxxxxx; sumit.semwal@xxxxxxxxxx;
>devel@xxxxxxxxxxxxxxxxxxxx; Todd Kjos <tkjos@xxxxxxxxxxx>; Greg
>Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>;
>linux-kernel@xxxxxxxxxxxxxxx; dri-devel@xxxxxxxxxxxxxxxxxxxxx;
>linaro-mm-sig@xxxxxxxxxxxxxxxx; Arve Hjønnevåg <arve@xxxxxxxxxxx>;
>Joel Fernandes <joel@xxxxxxxxxxxxxxxxx>; Martijn Coenen
><maco@xxxxxxxxxxx>; Christian Brauner <christian@xxxxxxxxxx>
>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

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux