--- zzzz-none-000/linux-4.1.52/include/linux/dmaengine.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/linux/dmaengine.h 2022-03-02 11:37:13.000000000 +0000 @@ -463,16 +463,16 @@ dmaengine_get_unmap_data(struct device *dev, int nr, gfp_t flags); void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap); #else -static inline void dma_set_unmap(struct dma_async_tx_descriptor *tx, - struct dmaengine_unmap_data *unmap) +static inline void dma_set_unmap(struct dma_async_tx_descriptor *tx __maybe_unused, + struct dmaengine_unmap_data *unmap __maybe_unused) { } static inline struct dmaengine_unmap_data * -dmaengine_get_unmap_data(struct device *dev, int nr, gfp_t flags) +dmaengine_get_unmap_data(struct device *dev __maybe_unused, int nr __maybe_unused, gfp_t flags __maybe_unused) { return NULL; } -static inline void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap) +static inline void dmaengine_unmap_put(struct dmaengine_unmap_data *unmap __maybe_unused) { } #endif @@ -486,27 +486,35 @@ } #ifndef CONFIG_ASYNC_TX_ENABLE_CHANNEL_SWITCH -static inline void txd_lock(struct dma_async_tx_descriptor *txd) +static inline void txd_lock(struct dma_async_tx_descriptor *txd __maybe_unused) { } -static inline void txd_unlock(struct dma_async_tx_descriptor *txd) +static inline void txd_unlock(struct dma_async_tx_descriptor *txd + __maybe_unused) { } -static inline void txd_chain(struct dma_async_tx_descriptor *txd, struct dma_async_tx_descriptor *next) +static inline void txd_chain(struct dma_async_tx_descriptor *txd + __maybe_unused, + struct dma_async_tx_descriptor *next + __maybe_unused) { BUG(); } -static inline void txd_clear_parent(struct dma_async_tx_descriptor *txd) +static inline void txd_clear_parent(struct dma_async_tx_descriptor *txd + __maybe_unused) { } -static inline void txd_clear_next(struct dma_async_tx_descriptor *txd) +static inline void txd_clear_next(struct dma_async_tx_descriptor *txd + __maybe_unused) { } -static inline struct dma_async_tx_descriptor *txd_next(struct dma_async_tx_descriptor *txd) +static inline struct dma_async_tx_descriptor *txd_next( + struct dma_async_tx_descriptor *txd __maybe_unused) { return NULL; } -static inline struct dma_async_tx_descriptor *txd_parent(struct dma_async_tx_descriptor *txd) +static inline struct dma_async_tx_descriptor *txd_parent( + struct dma_async_tx_descriptor *txd __maybe_unused) { return NULL; } @@ -904,7 +912,7 @@ { } static inline struct dma_chan * -async_dma_find_channel(enum dma_transaction_type type) +async_dma_find_channel(enum dma_transaction_type type __maybe_unused) { return NULL; } @@ -1039,41 +1047,41 @@ void dma_release_channel(struct dma_chan *chan); int dma_get_slave_caps(struct dma_chan *chan, struct dma_slave_caps *caps); #else -static inline struct dma_chan *dma_find_channel(enum dma_transaction_type tx_type) +static inline struct dma_chan *dma_find_channel(enum dma_transaction_type tx_type __maybe_unused) { return NULL; } -static inline enum dma_status dma_sync_wait(struct dma_chan *chan, dma_cookie_t cookie) +static inline enum dma_status dma_sync_wait(struct dma_chan *chan __maybe_unused, dma_cookie_t cookie __maybe_unused) { return DMA_COMPLETE; } -static inline enum dma_status dma_wait_for_async_tx(struct dma_async_tx_descriptor *tx) +static inline enum dma_status dma_wait_for_async_tx(struct dma_async_tx_descriptor *tx __maybe_unused) { return DMA_COMPLETE; } static inline void dma_issue_pending_all(void) { } -static inline struct dma_chan *__dma_request_channel(const dma_cap_mask_t *mask, - dma_filter_fn fn, void *fn_param) +static inline struct dma_chan *__dma_request_channel(const dma_cap_mask_t *mask __maybe_unused, + dma_filter_fn fn __maybe_unused, void *fn_param __maybe_unused) { return NULL; } static inline struct dma_chan *dma_request_slave_channel_reason( - struct device *dev, const char *name) + struct device *dev __maybe_unused, const char *name __maybe_unused) { return ERR_PTR(-ENODEV); } -static inline struct dma_chan *dma_request_slave_channel(struct device *dev, - const char *name) +static inline struct dma_chan *dma_request_slave_channel(struct device *dev __maybe_unused, + const char *name __maybe_unused) { return NULL; } -static inline void dma_release_channel(struct dma_chan *chan) +static inline void dma_release_channel(struct dma_chan *chan __maybe_unused) { } -static inline int dma_get_slave_caps(struct dma_chan *chan, - struct dma_slave_caps *caps) +static inline int dma_get_slave_caps(struct dma_chan *chan __maybe_unused, + struct dma_slave_caps *caps __maybe_unused) { return -ENXIO; }