From: Vinod Koul Date: Tue, 22 Aug 2017 16:43:44 +0000 (+0530) Subject: dmaengine: xgene-dma: remove unused xgene_dma_invalidate_buffer X-Git-Tag: v4.14-rc1~108^2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99380edf9efcf3485d1b9ac9203f6aa85b658d2e;p=platform%2Fkernel%2Flinux-rpi.git dmaengine: xgene-dma: remove unused xgene_dma_invalidate_buffer Commit c678fa66341c: ("dmaengine: remove DMA_SG as it is dead code in kernel") removes DMA_SG from dmaengine subsystem but missed removing unused xgene_dma_invalidate_buffer function, so remove it drivers/dma/xgene-dma.c:394:13: warning: ‘xgene_dma_invalidate_buffer’ defined but not used [-Wunused-function] static void xgene_dma_invalidate_buffer(__le64 *ext8) Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/xgene-dma.c b/drivers/dma/xgene-dma.c index 8648d23..1d59888 100644 --- a/drivers/dma/xgene-dma.c +++ b/drivers/dma/xgene-dma.c @@ -391,11 +391,6 @@ static void xgene_dma_set_src_buffer(__le64 *ext8, size_t *len, *paddr += nbytes; } -static void xgene_dma_invalidate_buffer(__le64 *ext8) -{ - *ext8 |= cpu_to_le64(XGENE_DMA_INVALID_LEN_CODE); -} - static __le64 *xgene_dma_lookup_ext8(struct xgene_dma_desc_hw *desc, int idx) { switch (idx) {