]> Pileus Git - ~andy/linux/commitdiff
NFC: Fix missing static declarations
authorThierry Escande <thierry.escande@linux.intel.com>
Mon, 24 Jun 2013 10:02:28 +0000 (12:02 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 13 Aug 2013 22:28:16 +0000 (00:28 +0200)
This patch fixes 3 sparse warnings:
nfcsim.c:63:25: sparse: symbol 'wq' was not declared.
nfcsim.c:484:12: sparse: symbol 'nfcsim_init' was not declared.
nfcsim.c:525:13: sparse: symbol 'nfcsim_exit' was not declared.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/nfcsim.c

index c5c30fb1d7bfe8510175fcbf156d385d036e012f..9a53f13c88df50a705c84b89e4fe7c081dbe3c88 100644 (file)
@@ -60,7 +60,7 @@ struct nfcsim {
 static struct nfcsim *dev0;
 static struct nfcsim *dev1;
 
-struct workqueue_struct *wq;
+static struct workqueue_struct *wq;
 
 static void nfcsim_cleanup_dev(struct nfcsim *dev, u8 shutdown)
 {
@@ -481,7 +481,7 @@ static void nfcsim_free_device(struct nfcsim *dev)
        kfree(dev);
 }
 
-int __init nfcsim_init(void)
+static int __init nfcsim_init(void)
 {
        int rc;
 
@@ -522,7 +522,7 @@ exit:
        return rc;
 }
 
-void __exit nfcsim_exit(void)
+static void __exit nfcsim_exit(void)
 {
        nfcsim_cleanup_dev(dev0, 1);
        nfcsim_cleanup_dev(dev1, 1);