dma-buf: heaps: system: Turn the heap into a module

The system heap can be easily turned into a module by adding the usual
MODULE_* macros, importing the proper namespaces and changing 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 <[email protected]>
Acked-by: Andrew Davis <[email protected]>
Signed-off-by: Maxime Ripard <[email protected]>
Signed-off-by: Sumit Semwal <[email protected]>
Link: https://patch.msgid.link/[email protected]
This commit is contained in:
Maxime Ripard authored and Sumit Semwal committed 2026-05-21 20:57:16 +05:30
1 parent 10bb37fc62
commit fd55edff8a
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
config DMABUF_HEAPS_SYSTEM
bool "DMA-BUF System Heap"
tristate "DMA-BUF System Heap"
depends on DMABUF_HEAPS
help
Choose this option to enable the system dmabuf heap. The system heap
+5
View File
@@ -537,3 +537,8 @@ static int __init system_heap_create(void)
return 0;
}
module_init(system_heap_create);
MODULE_DESCRIPTION("DMA-BUF System Heap");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS("DMA_BUF");
MODULE_IMPORT_NS("DMA_BUF_HEAP");