--- zzzz-none-000/linux-3.10.107/include/asm-generic/dma-contiguous.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/include/asm-generic/dma-contiguous.h 2021-02-04 17:41:59.000000000 +0000 @@ -1,28 +1,9 @@ -#ifndef ASM_DMA_CONTIGUOUS_H -#define ASM_DMA_CONTIGUOUS_H +#ifndef _ASM_GENERIC_DMA_CONTIGUOUS_H +#define _ASM_GENERIC_DMA_CONTIGUOUS_H -#ifdef __KERNEL__ -#ifdef CONFIG_CMA +#include -#include -#include - -static inline struct cma *dev_get_cma_area(struct device *dev) -{ - if (dev && dev->cma_area) - return dev->cma_area; - return dma_contiguous_default_area; -} - -static inline void dev_set_cma_area(struct device *dev, struct cma *cma) -{ - if (dev) - dev->cma_area = cma; - if (!dev && !dma_contiguous_default_area) - dma_contiguous_default_area = cma; -} - -#endif -#endif +static inline void +dma_contiguous_early_fixup(phys_addr_t base, unsigned long size) { } #endif