--- zzzz-none-000/linux-5.4.213/include/linux/dma-mapping.h 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/include/linux/dma-mapping.h 2024-05-29 11:20:02.000000000 +0000 @@ -762,6 +762,7 @@ #ifdef CONFIG_DMA_DECLARE_COHERENT int dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, dma_addr_t device_addr, size_t size); +void dma_release_declared_memory(struct device *dev); #else static inline int dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, @@ -769,6 +770,11 @@ { return -ENOSYS; } + +static inline void +dma_release_declared_memory(struct device *dev) +{ +} #endif /* CONFIG_DMA_DECLARE_COHERENT */ static inline void *dmam_alloc_coherent(struct device *dev, size_t size,