Skip to contentSkip to conversation

dmaengine: ti-dma-crossbar: make omap_dmaxbar_init static

PATCH New Ben Dooks 2 participants 2 messages Jun 21, 2016 – Jun 28, 2016 dmaengine

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

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
index e107779..5ae294b 100644
@@ -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
Applied
#1 lore raw

PATCH 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