Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1490546
| From | Baoyou Xie <baoyou.xie@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/3] dmaengine: pxa_dma: add function declaration |
| Date | 2016-09-24 07:00 +0200 |
| Message-ID | <skNe9-4Wr-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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 undeclared in any header files.
So this patch adds function declaration in include/linux/dma/pxa-dma.h.
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
---
include/linux/dma/pxa-dma.h | 1 ++++++
1 file changed, 1 insertions(+)
diff --git a/include/linux/dma/pxa-dma.h b/include/linux/dma/pxa-dma.h
index 3edc992..1823257 100644
--- a/include/linux/dma/pxa-dma.h
+++ b/include/linux/dma/pxa-dma.h
@@ -17,6 +17,7 @@ struct dma_chan;
#ifdef CONFIG_PXA_DMA
bool pxad_filter_fn(struct dma_chan *chan, void *param);
+int pxad_toggle_reserved_channel(int legacy_channel);
#else
static inline bool pxad_filter_fn(struct dma_chan *chan, void *param)
{
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 2/3] dmaengine: pxa_dma: add function declaration Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-24 07:00 +0200 Re: [PATCH 2/3] dmaengine: pxa_dma: add function declaration Arnd Bergmann <arnd@arndb.de> - 2016-09-24 11:10 +0200
csiph-web