Skip to contentSkip to conversation

staging: staging: kpc2000: kpc_dma: fix symbol 'kpc_dma_add_device' was not declared.

PATCH New Valerio Genovese 1 participant 1 message Jun 5, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: staging: kpc2000: kpc_dma: fix symbol 'kpc_dma_add_device' was not declared.

This was reported by sparse:
drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c:39:7: warning: symbol 'kpc_dma_add_device ' was not declared. Should it be static?

---
 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c +1 -1
index cda057569163..bc208bb6777f 100644
@@ -36,7 +36,7 @@ struct kpc_dma_device *kpc_dma_lookup_device(int minor)
 	return c;
 }
 
-void  kpc_dma_add_device(struct kpc_dma_device *ldev)
+static void  kpc_dma_add_device(struct kpc_dma_device *ldev)
 {
 	mutex_lock(&kpc_dma_mtx);
 	list_add(&ldev->list, &kpc_dma_list);
Signature · 1 line
2.17.1