--- zzzz-none-000/linux-3.10.107/arch/mips/include/asm/mach-generic/dma-coherence.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/arch/mips/include/asm/mach-generic/dma-coherence.h 2021-11-10 11:53:53.000000000 +0000 @@ -11,30 +11,37 @@ struct device; -static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, - size_t size) +static inline dma_addr_t plat_map_dma_mem(struct device *dev __maybe_unused, + void *addr, + size_t size __maybe_unused) { return virt_to_phys(addr); } -static inline dma_addr_t plat_map_dma_mem_page(struct device *dev, - struct page *page) +static inline dma_addr_t plat_map_dma_mem_page(struct device *dev + __maybe_unused, + struct page *page) { return page_to_phys(page); } -static inline unsigned long plat_dma_addr_to_phys(struct device *dev, - dma_addr_t dma_addr) +static inline unsigned long plat_dma_addr_to_phys(struct device *dev + __maybe_unused, + dma_addr_t dma_addr) { return dma_addr; } -static inline void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr, - size_t size, enum dma_data_direction direction) +static inline void plat_unmap_dma_mem(struct device *dev __maybe_unused, + dma_addr_t dma_addr __maybe_unused, + size_t size __maybe_unused, + enum dma_data_direction direction + __maybe_unused) { } -static inline int plat_dma_supported(struct device *dev, u64 mask) +static inline int plat_dma_supported(struct device *dev __maybe_unused, + u64 mask) { /* * we fall back to GFP_DMA when the mask isn't all 1s, @@ -47,17 +54,17 @@ return 1; } -static inline void plat_extra_sync_for_device(struct device *dev) +static inline void plat_extra_sync_for_device(struct device *dev __maybe_unused) { } -static inline int plat_dma_mapping_error(struct device *dev, - dma_addr_t dma_addr) +static inline int plat_dma_mapping_error(struct device *dev __maybe_unused, + dma_addr_t dma_addr __maybe_unused) { return 0; } -static inline int plat_device_is_coherent(struct device *dev) +static inline int plat_device_is_coherent(struct device *dev __maybe_unused) { #ifdef CONFIG_DMA_COHERENT return 1;