dma-buf: rk_heaps: weakly define dma_contiguous_early_fixup

Define dma_contiguous_early_fixup weakly since the function may not be
defined by architecture.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Id29e0515d24a9801aade00f4d257c80eb4238f6f
This commit is contained in:
Jianqun Xu
2022-03-25 11:06:53 +08:00
committed by Tao Huang
parent 4e30a51375
commit e10ee7cd2a

View File

@@ -38,6 +38,13 @@ static int __init early_dma_heap_cma(char *p)
}
early_param("rk_dma_heap_cma", early_dma_heap_cma);
#ifndef CONFIG_DMA_CMA
void __weak
dma_contiguous_early_fixup(phys_addr_t base, unsigned long size)
{
}
#endif
int __init rk_dma_heap_cma_setup(void)
{
unsigned long size;