dmaengine: virt-dma: move function declarations
authorBaoyou Xie <baoyou.xie@linaro.org>
Sat, 24 Sep 2016 04:37:05 +0000 (12:37 +0800)
committerVinod Koul <vinod.koul@intel.com>
Sat, 1 Oct 2016 06:11:39 +0000 (11:41 +0530)
commit02aa84860c29f3f5a57e959982c811df46a2736c
treed81c14dd3b0fae3a85064b4afbe207a930ffa191
parent3770f2a6bfe00869a4b83ee3cced0361ab33289a
dmaengine: virt-dma: move function declarations

We get 2 warnings when building kernel with W=1:
drivers/dma/virt-dma.c:22:14: warning: no previous prototype for 'vchan_tx_submit' [-Wmissing-prototypes]
drivers/dma/virt-dma.c:52:5: warning: no previous prototype for 'vchan_tx_desc_free' [-Wmissing-prototypes]

In fact, these two functions are incorrectly declared in a function.

So this patch moves function declarations out of this function.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/virt-dma.h