Commit 40dac370 authored by Thierry Escande's avatar Thierry Escande Committed by Samuel Ortiz

NFC: Fix missing static declarations

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarThierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent d1e2586f
...@@ -60,7 +60,7 @@ struct nfcsim { ...@@ -60,7 +60,7 @@ struct nfcsim {
static struct nfcsim *dev0; static struct nfcsim *dev0;
static struct nfcsim *dev1; static struct nfcsim *dev1;
struct workqueue_struct *wq; static struct workqueue_struct *wq;
static void nfcsim_cleanup_dev(struct nfcsim *dev, u8 shutdown) static void nfcsim_cleanup_dev(struct nfcsim *dev, u8 shutdown)
{ {
...@@ -481,7 +481,7 @@ static void nfcsim_free_device(struct nfcsim *dev) ...@@ -481,7 +481,7 @@ static void nfcsim_free_device(struct nfcsim *dev)
kfree(dev); kfree(dev);
} }
int __init nfcsim_init(void) static int __init nfcsim_init(void)
{ {
int rc; int rc;
...@@ -522,7 +522,7 @@ int __init nfcsim_init(void) ...@@ -522,7 +522,7 @@ int __init nfcsim_init(void)
return rc; return rc;
} }
void __exit nfcsim_exit(void) static void __exit nfcsim_exit(void)
{ {
nfcsim_cleanup_dev(dev0, 1); nfcsim_cleanup_dev(dev0, 1);
nfcsim_cleanup_dev(dev1, 1); nfcsim_cleanup_dev(dev1, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment