--- zzzz-none-000/linux-4.1.52/include/linux/dma-debug.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/linux/dma-debug.h 2022-03-02 11:37:13.000000000 +0000 @@ -89,103 +89,103 @@ #else /* CONFIG_DMA_API_DEBUG */ -static inline void dma_debug_add_bus(struct bus_type *bus) +static inline void dma_debug_add_bus(struct bus_type *bus __maybe_unused) { } -static inline void dma_debug_init(u32 num_entries) +static inline void dma_debug_init(u32 num_entries __maybe_unused) { } -static inline int dma_debug_resize_entries(u32 num_entries) +static inline int dma_debug_resize_entries(u32 num_entries __maybe_unused) { return 0; } -static inline void debug_dma_map_page(struct device *dev, struct page *page, - size_t offset, size_t size, - int direction, dma_addr_t dma_addr, - bool map_single) +static inline void debug_dma_map_page(struct device *dev __maybe_unused, struct page *page __maybe_unused, + size_t offset __maybe_unused, size_t size __maybe_unused, + int direction __maybe_unused, dma_addr_t dma_addr __maybe_unused, + bool map_single __maybe_unused) { } -static inline void debug_dma_mapping_error(struct device *dev, - dma_addr_t dma_addr) +static inline void debug_dma_mapping_error(struct device *dev __maybe_unused, + dma_addr_t dma_addr __maybe_unused) { } -static inline void debug_dma_unmap_page(struct device *dev, dma_addr_t addr, - size_t size, int direction, - bool map_single) +static inline void debug_dma_unmap_page(struct device *dev __maybe_unused, dma_addr_t addr __maybe_unused, + size_t size __maybe_unused, int direction __maybe_unused, + bool map_single __maybe_unused) { } -static inline void debug_dma_map_sg(struct device *dev, struct scatterlist *sg, - int nents, int mapped_ents, int direction) +static inline void debug_dma_map_sg(struct device *dev __maybe_unused, struct scatterlist *sg __maybe_unused, + int nents __maybe_unused, int mapped_ents __maybe_unused, int direction __maybe_unused) { } -static inline void debug_dma_unmap_sg(struct device *dev, - struct scatterlist *sglist, - int nelems, int dir) +static inline void debug_dma_unmap_sg(struct device *dev __maybe_unused, + struct scatterlist *sglist __maybe_unused, + int nelems __maybe_unused, int dir __maybe_unused) { } -static inline void debug_dma_alloc_coherent(struct device *dev, size_t size, - dma_addr_t dma_addr, void *virt) +static inline void debug_dma_alloc_coherent(struct device *dev __maybe_unused, size_t size __maybe_unused, + dma_addr_t dma_addr __maybe_unused, void *virt __maybe_unused) { } -static inline void debug_dma_free_coherent(struct device *dev, size_t size, - void *virt, dma_addr_t addr) +static inline void debug_dma_free_coherent(struct device *dev __maybe_unused, size_t size __maybe_unused, + void *virt __maybe_unused, dma_addr_t addr __maybe_unused) { } -static inline void debug_dma_sync_single_for_cpu(struct device *dev, - dma_addr_t dma_handle, - size_t size, int direction) +static inline void debug_dma_sync_single_for_cpu(struct device *dev __maybe_unused, + dma_addr_t dma_handle __maybe_unused, + size_t size __maybe_unused, int direction __maybe_unused) { } -static inline void debug_dma_sync_single_for_device(struct device *dev, - dma_addr_t dma_handle, - size_t size, int direction) +static inline void debug_dma_sync_single_for_device(struct device *dev __maybe_unused, + dma_addr_t dma_handle __maybe_unused, + size_t size __maybe_unused, int direction __maybe_unused) { } -static inline void debug_dma_sync_single_range_for_cpu(struct device *dev, - dma_addr_t dma_handle, - unsigned long offset, - size_t size, - int direction) +static inline void debug_dma_sync_single_range_for_cpu(struct device *dev __maybe_unused, + dma_addr_t dma_handle __maybe_unused, + unsigned long offset __maybe_unused, + size_t size __maybe_unused, + int direction __maybe_unused) { } -static inline void debug_dma_sync_single_range_for_device(struct device *dev, - dma_addr_t dma_handle, - unsigned long offset, - size_t size, - int direction) +static inline void debug_dma_sync_single_range_for_device(struct device *dev __maybe_unused, + dma_addr_t dma_handle __maybe_unused, + unsigned long offset __maybe_unused, + size_t size __maybe_unused, + int direction __maybe_unused) { } -static inline void debug_dma_sync_sg_for_cpu(struct device *dev, - struct scatterlist *sg, - int nelems, int direction) +static inline void debug_dma_sync_sg_for_cpu(struct device *dev __maybe_unused, + struct scatterlist *sg __maybe_unused, + int nelems __maybe_unused, int direction __maybe_unused) { } -static inline void debug_dma_sync_sg_for_device(struct device *dev, - struct scatterlist *sg, - int nelems, int direction) +static inline void debug_dma_sync_sg_for_device(struct device *dev __maybe_unused, + struct scatterlist *sg __maybe_unused, + int nelems __maybe_unused, int direction __maybe_unused) { } -static inline void debug_dma_dump_mappings(struct device *dev) +static inline void debug_dma_dump_mappings(struct device *dev __maybe_unused) { } -static inline void debug_dma_assert_idle(struct page *page) +static inline void debug_dma_assert_idle(struct page *page __maybe_unused) { }