Re: [PATCH] dma-direct: Export dma_direct_alloc() and dma_direct_free()

From: Christoph Hellwig
Date: Tue Feb 05 2019 - 11:10:40 EST


On Tue, Feb 05, 2019 at 12:06:02PM +0100, Thierry Reding wrote:
> From: Thierry Reding <treding@xxxxxxxxxx>
>
> Drivers that are built as modules may want to use these functions, so
> make them available like the rest of the functions.
>
> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>

How do they want to use these functions? The proper way is to
call dma_alloc_coherent / dma_alloc_free and let the DMA API
handle the rest.