Re: [PATCH 3/5] dma-mapping: cosolidate dma_mapping_error

2015-08-27 Thread Andy Shevchenko
On Mon, Aug 17, 2015 at 10:06 AM, Christoph Hellwig wrote: > Currently there are three valid implementations of dma_mapping_error: > > (1) call ->mapping_error > (2) check for a hardcoded error code > (3) always return 0 > > This patch provides a common implementation that calls ->mapping_error

[PATCH 3/5] dma-mapping: cosolidate dma_mapping_error

2015-08-17 Thread Christoph Hellwig
Currently there are three valid implementations of dma_mapping_error: (1) call ->mapping_error (2) check for a hardcoded error code (3) always return 0 This patch provides a common implementation that calls ->mapping_error if present, then checks for DMA_ERROR_CODE if defined or otherwise retu

[PATCH 3/5] dma-mapping: cosolidate dma_mapping_error

2015-08-13 Thread Christoph Hellwig
Currently there are three valid implementations of dma_mapping_error: (1) call ->mapping_error (2) check for a hardcoded error code (3) always return 0 This patch provides a common implementation that calls ->mapping_error if present, then checks for DMA_ERROR_CODE if defined or otherwise retu