dmaengine: ti-dma-crossbar: make omap_dmaxbar_init static
PATCH 1/1 dmaengine: ti-dma-crossbar: make omap_dmaxbar_init static
The omap_dmaxbar_init() function is not exported or declared outside the driver, so make it static to fix the following sparse warning:
drivers/dma/ti-dma-crossbar.c:455:5: warning: symbol 'omap_dmaxbar_init' was not declared. Should it be static?
---
Cc: Vinod Koul <[email protected]>
Cc: Dan Williams <[email protected]>
Cc: dmaengine at vger.kernel.org
Cc: linux-arm-kernel at lists.infradead.org
--- drivers/dma/ti-dma-crossbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/ti-dma-crossbar.c +1 -1
@@ -452,7 +452,7 @@ static struct platform_driver ti_dma_xbar_driver = { .probe = ti_dma_xbar_probe, }; -int omap_dmaxbar_init (void ) +static int omap_dmaxbar_init (void ) {return platform_driver_register (&ti_dma_xbar_driver); }
Signature · 1 line
2.8.1
Vinod Koul
AppliedPATCH 1/1 dmaengine: ti-dma-crossbar: make omap_dmaxbar_init static
Quoted 4 lines · Ben Dooks
The
omap_dmaxbar_init()function is not exported or declared outside the driver, so make it static to fix the following sparse warning:
drivers/dma/ti-dma-crossbar.c:455:5: warning: symbol 'omap_dmaxbar_init' was not declared. Should it be static?
Applied, thanks
Signature · 1 line
~Vinod