diff --git a/kernel/dma/coherent.c b/kernel/dma/coherent.c index 49aaad3936f19..25c2a809fda38 100644 --- a/kernel/dma/coherent.c +++ b/kernel/dma/coherent.c @@ -369,7 +369,9 @@ static int __init rmem_dma_setup(struct reserved_mem *rmem) pr_err("Reserved memory: regions without no-map are not yet supported\n"); return -EINVAL; } +#endif +#ifdef CONFIG_DMA_GLOBAL_POOL if (of_get_flat_dt_prop(node, "linux,dma-default", NULL)) { WARN(dma_reserved_default_memory, "Reserved memory: region for default DMA coherent area is redefined\n");