Re: [PATCH 4/7] mm: cma: Export dma_contiguous_default_area
From: T.J. Mercier
Date: Wed Feb 25 2026 - 14:53:35 EST
On Wed, Feb 25, 2026 at 8:42 AM Maxime Ripard <mripard@xxxxxxxxxx> wrote:
>
> The CMA dma-buf heap uses the dev_get_cma_area() inline function that
> would either return the content of device.cma_area or the content of
> dma_contiguous_default_area.
>
> The latter holds a pointer to the default CMA region, and is stored in a
> public variable. However, that variable isn't exported which prevents to
> use dev_get_cma_area() in modules.
>
> Since we want to turn the CMA heap into a module, let's export
> dma_contiguous_default_area to allow modules to use dev_get_cma_area().
>
> Signed-off-by: Maxime Ripard <mripard@xxxxxxxxxx>
Reviewed-by: T.J. Mercier <tjmercier@xxxxxxxxxx>