[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1475154561-12327-1-git-send-email-baoyou.xie@linaro.org>
Date: Thu, 29 Sep 2016 21:09:21 +0800
From: Baoyou Xie <baoyou.xie@...aro.org>
To: daniel@...que.org, haojian.zhuang@...il.com,
robert.jarzmik@...e.fr, vinod.koul@...el.com,
dan.j.williams@...el.com
Cc: linux-arm-kernel@...ts.infradead.org, dmaengine@...r.kernel.org,
linux-kernel@...r.kernel.org, arnd@...db.de, baoyou.xie@...aro.org,
xie.baoyou@....com.cn, han.fei@....com.cn, tang.qiang007@....com.cn
Subject: [PATCH] dmaengine: pxa_dma: remove unused function
We get 1 warning when building kernel with W=1:
drivers/dma/pxa_dma.c:1525:5: warning: no previous prototype for 'pxad_toggle_reserved_channel' [-Wmissing-prototypes]
In fact, this function is called by no one, so this patch removes it.
Signed-off-by: Baoyou Xie <baoyou.xie@...aro.org>
---
drivers/dma/pxa_dma.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/dma/pxa_dma.c b/drivers/dma/pxa_dma.c
index 3f56f9c..7d9b1cc 100644
--- a/drivers/dma/pxa_dma.c
+++ b/drivers/dma/pxa_dma.c
@@ -1522,15 +1522,6 @@ bool pxad_filter_fn(struct dma_chan *chan, void *param)
}
EXPORT_SYMBOL_GPL(pxad_filter_fn);
-int pxad_toggle_reserved_channel(int legacy_channel)
-{
- if (legacy_unavailable & (BIT(legacy_channel)))
- return -EBUSY;
- legacy_reserved ^= BIT(legacy_channel);
- return 0;
-}
-EXPORT_SYMBOL_GPL(pxad_toggle_reserved_channel);
-
module_platform_driver(pxad_driver);
MODULE_DESCRIPTION("Marvell PXA Peripheral DMA Driver");
--
2.7.4
Powered by blists - more mailing lists