LKML Archive on
help / color / mirror / Atom feed
* [PATCH v2] staging: staging: kpc2000: kpc_dma: fix symbol 'kpc_dma_add_device' was not declared.
@ 2019-06-05 16:55 Valerio Genovese
  0 siblings, 0 replies; only message in thread
From: Valerio Genovese @ 2019-06-05 16:55 UTC (permalink / raw)
  To: gregkh; +Cc: devel, linux-kernel

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?

Signed-off-by: Valerio Genovese <>
 drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c b/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c
index cda057569163..bc208bb6777f 100644
--- a/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c
+++ b/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c
@@ -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)
 	list_add(&ldev->list, &kpc_dma_list);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-05 16:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-05 16:55 [PATCH v2] staging: staging: kpc2000: kpc_dma: fix symbol 'kpc_dma_add_device' was not declared Valerio Genovese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).