1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef DMA_BUF_HEAP_CMA_H_ 3 #define DMA_BUF_HEAP_CMA_H_ 4 5 struct cma; 6 7 #ifdef CONFIG_DMABUF_HEAPS_CMA 8 int dma_heap_cma_register_heap(struct cma *cma); 9 #else dma_heap_cma_register_heap(struct cma * cma)10static inline int dma_heap_cma_register_heap(struct cma *cma) 11 { 12 return 0; 13 } 14 #endif // CONFIG_DMABUF_HEAPS_CMA 15 16 #endif // DMA_BUF_HEAP_CMA_H_ 17