From 41a3d93a3987b3c5a8884717688cf082e7539fa3 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 15 Nov 2021 17:37:35 +0100 Subject: [PATCH] ANDROID: add dma-buf namespace to system_heap.c & cma_heap.c Commit 16b0314aa746 ("dma-buf: move dma-buf symbols into the DMA_BUF module namespace") moved the dma-buf exports into the DMA_BUF namespace. To keep the system_heap.c and cma_heap modules building, add them to the DMA_BUF namespace as well. Fixes: 16b0314aa746 ("dma-buf: move dma-buf symbols into the DMA_BUF module namespace") Cc: John Stultz Signed-off-by: Greg Kroah-Hartman Change-Id: Ib69062d41c426844f82667a51d75f0c35bad2bdf --- drivers/dma-buf/heaps/cma_heap.c | 1 + drivers/dma-buf/heaps/system_heap.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/dma-buf/heaps/cma_heap.c b/drivers/dma-buf/heaps/cma_heap.c index 0c05b79870f9..5905795a6c08 100644 --- a/drivers/dma-buf/heaps/cma_heap.c +++ b/drivers/dma-buf/heaps/cma_heap.c @@ -403,3 +403,4 @@ static int add_default_cma_heap(void) module_init(add_default_cma_heap); MODULE_DESCRIPTION("DMA-BUF CMA Heap"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(DMA_BUF); diff --git a/drivers/dma-buf/heaps/system_heap.c b/drivers/dma-buf/heaps/system_heap.c index 12998b8654e2..8af8dc9cb56c 100644 --- a/drivers/dma-buf/heaps/system_heap.c +++ b/drivers/dma-buf/heaps/system_heap.c @@ -517,3 +517,4 @@ static int system_heap_create(void) } module_init(system_heap_create); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(DMA_BUF);