--- zzzz-none-000/linux-2.6.39.4/include/linux/dmaengine.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/include/linux/dmaengine.h 2021-11-10 13:23:10.000000000 +0000 @@ -329,27 +329,27 @@ }; #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 __attribute__((unused))) { } -static inline void txd_unlock(struct dma_async_tx_descriptor *txd) +static inline void txd_unlock(struct dma_async_tx_descriptor *txd __attribute__((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 __attribute__((unused)), struct dma_async_tx_descriptor *next __attribute__((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 __attribute__((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 __attribute__((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 __attribute__((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 __attribute__((unused))) { return NULL; } @@ -669,7 +669,7 @@ { } static inline struct dma_chan * -async_dma_find_channel(enum dma_transaction_type type) +async_dma_find_channel(enum dma_transaction_type type __attribute__((unused))) { return NULL; } @@ -827,19 +827,19 @@ struct dma_chan *__dma_request_channel(dma_cap_mask_t *mask, dma_filter_fn fn, void *fn_param); 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 __attribute__((unused))) { return DMA_SUCCESS; } static inline void dma_issue_pending_all(void) { } -static inline struct dma_chan *__dma_request_channel(dma_cap_mask_t *mask, - dma_filter_fn fn, void *fn_param) +static inline struct dma_chan *__dma_request_channel(dma_cap_mask_t *mask __attribute__((unused)), + dma_filter_fn fn __attribute__((unused)), void *fn_param __attribute__((unused))) { return NULL; } -static inline void dma_release_channel(struct dma_chan *chan) +static inline void dma_release_channel(struct dma_chan *chan __attribute__((unused))) { } #endif