This patch makes 4 symbols static as suggested by Sparse tool. Signed-off-by: Rishiraj Manwatkar <manwatkar@xxxxxxxxxxx> --- drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c b/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c index cda057569163..e4056607af0b 100644 --- a/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c +++ b/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c @@ -36,14 +36,14 @@ 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); 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 @@ -196,7 +196,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 = { -- 2.17.1 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel