summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorRishiraj Manwatkar <manwatkar@outlook.com>2019-06-11 03:35:41 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-13 10:47:12 +0200
commitabddd78ef465b86fc89a3d9750bb76a138bc0859 (patch)
tree81228d580b7936f7bbebd68dfbc6126d7063184b /drivers/staging
parent3300a661a97ebcd10ddb5c1c149f22a171e7098a (diff)
downloadlinux-stable-abddd78ef465b86fc89a3d9750bb76a138bc0859.tar.gz
linux-stable-abddd78ef465b86fc89a3d9750bb76a138bc0859.tar.bz2
linux-stable-abddd78ef465b86fc89a3d9750bb76a138bc0859.zip
staging: kpc2000: Fix: 'kpc_dma_del_device' and other symbols were not declared
This patch removes the Sparse generated warnings. Following warnings are reported by Sparse: drivers/staging/kpc2000//kpc_dma/kpc_dma_driver.c:46:6: warning: symbol 'kpc_dma_del_device' was not declared. Should it be static? drivers/staging/kpc2000//kpc_dma/kpc_dma_driver.c:91:14: warning: symbol 'kpc_dma_class' was not declared. Should it be static? drivers/staging/kpc2000//kpc_dma/kpc_dma_driver.c:199:24: warning: symbol 'kpc_dma_plat_driver_i' was not declared. Should it be static? Signed-off-by: Rishiraj Manwatkar <manwatkar@outlook.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c b/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c
index 4b854027e60a..9506fff4bbe9 100644
--- a/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c
+++ b/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c
@@ -43,7 +43,7 @@ static void kpc_dma_add_device(struct kpc_dma_device *ldev)
mutex_unlock(&kpc_dma_mtx);
}
-void kpc_dma_del_device(struct kpc_dma_device *ldev)
+static void kpc_dma_del_device(struct kpc_dma_device *ldev)
{
mutex_lock(&kpc_dma_mtx);
list_del(&ldev->list);
@@ -88,7 +88,7 @@ static const struct attribute *ndd_attr_list[] = {
NULL,
};
-struct class *kpc_dma_class;
+static struct class *kpc_dma_class;
/********** Platform Driver Functions **********/
static
@@ -192,7 +192,7 @@ int kpc_dma_remove(struct platform_device *pldev)
}
/********** Driver Functions **********/
-struct platform_driver kpc_dma_plat_driver_i = {
+static struct platform_driver kpc_dma_plat_driver_i = {
.probe = kpc_dma_probe,
.remove = kpc_dma_remove,
.driver = {