On 07/18/2016 11:47 PM, Dave Jiang wrote: > Adding dmaengine core helper function in order to prep for error > reporting. Here as well, commit message. What is being done, why is it being done, how is it being done? > --- > drivers/dma/dmaengine.h | 30 ++++++++++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > > diff --git a/drivers/dma/dmaengine.h b/drivers/dma/dmaengine.h > index 17f983a..6fb5edc 100644 > --- a/drivers/dma/dmaengine.h > +++ b/drivers/dma/dmaengine.h > @@ -86,4 +86,34 @@ static inline void dma_set_residue(struct dma_tx_state *state, u32 residue) > state->residue = residue; > } ]...] > +static inline void > +dmaengine_desc_get_callback_invoke(struct dma_async_tx_descriptor *tx, > + struct dmaengine_desc_callback *cb, > + const void *result) > +{ cb should be declared in this function rather than being a parameter. It is not used outside of the function. > + dmaengine_desc_get_callback(tx, cb); > + dmaengine_desc_callback_invoke(cb, result); > +} > + > #endif > -- To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html