]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dma-buf: heaps: cma: Turn the heap into a module
authorMaxime Ripard <mripard@kernel.org>
Mon, 27 Apr 2026 10:04:58 +0000 (12:04 +0200)
committerSumit Semwal <sumit.semwal@linaro.org>
Thu, 21 May 2026 15:27:15 +0000 (20:57 +0530)
commit10bb37fc624cfcc1d10e0ebfc1b829401abba91e
tree1b50bdd62505f61f608784a3195e7795bbb42578
parentf78a0607c8bf6912943527175db61996436d5792
dma-buf: heaps: cma: Turn the heap into a module

All the symbols used by the CMA heap are already exported, so turning it
into a module is straightforward. We only need to add the usual MODULE_*
macros, import the proper namespaces and change the Kconfig symbol to a
tristate.

This heap won't be able to unload though, since we're missing a lot of
infrastructure to make it safe.

Reviewed-by: T.J. Mercier <tjmercier@google.com>
Acked-by: Andrew Davis <afd@ti.com>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://patch.msgid.link/20260427-dma-buf-heaps-as-modules-v5-2-b6f5678feefc@kernel.org
drivers/dma-buf/heaps/Kconfig
drivers/dma-buf/heaps/cma_heap.c