MIPS: Netlogic: Fix build error
PATCH v2 1/1 MIPS: Netlogic: Fix build error
The variable 'ret' is no longer used in nlm_dma_alloc_coherent() and causes the following build error.
arch/mips/netlogic/common/nlm-dma.c: In function 'nlm_dma_alloc_coherent':arch/mips/netlogic/common/nlm-dma.c:50:8: error: unused variable 'ret'
Fixes e4d0d18739dc ("dma-mapping: consolidate dma_{alloc,free}_{attrs,coherent}")
Cc Christoph Hellwig <[email protected]>
Signed-off-by Guenter Roeck <[email protected]>
---
Previous version was based on next-20150824 and got it all wrong. It might make sense to merge this into Andrew's tree, or even into the offending patch.
arch/mips/netlogic/common/nlm-dma.c | 2 -- 1 file changed, 2 deletions(-)
arch/mips/netlogic/common/nlm-dma.c +0 -2
@@ -47,8 +47,6 @@ static char *nlm_swiotlb;static void *nlm_dma_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_handle,gfp_t gfp,struct dma_attrs *attrs) { -void *ret; -/* ignore region specifiers */ gfp &= ~(__GFP_DMA | __GFP_DMA32 | __GFP_HIGHMEM);
Signature · 1 line
2.1.4