--- zzzz-none-000/linux-3.10.107/include/linux/dmaengine.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/dmaengine.h 2021-11-10 11:53:56.000000000 +0000 @@ -425,27 +425,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; } @@ -833,7 +841,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; } @@ -972,24 +980,28 @@ struct dma_chan *dma_request_slave_channel(struct device *dev, const char *name); void dma_release_channel(struct dma_chan *chan); #else -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_SUCCESS; } 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(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) { } #endif