diff options
| author | Thierry Escande <thierry.escande@linux.intel.com> | 2013-06-24 06:02:28 -0400 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-08-13 18:28:16 -0400 |
| commit | 40dac370efea8d5f2e4de61badf377637053fda7 (patch) | |
| tree | d82865f7b6f453542d7ddb040059ebcbc9304e82 | |
| parent | d1e2586f484dfc36eee2b2d3a6c6c77be67ca492 (diff) | |
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: 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>
| -rw-r--r-- | drivers/nfc/nfcsim.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/nfc/nfcsim.c b/drivers/nfc/nfcsim.c index c5c30fb1d7bf..9a53f13c88df 100644 --- a/drivers/nfc/nfcsim.c +++ b/drivers/nfc/nfcsim.c | |||
| @@ -60,7 +60,7 @@ struct nfcsim { | |||
| 60 | static struct nfcsim *dev0; | 60 | static struct nfcsim *dev0; |
| 61 | static struct nfcsim *dev1; | 61 | static struct nfcsim *dev1; |
| 62 | 62 | ||
| 63 | struct workqueue_struct *wq; | 63 | static struct workqueue_struct *wq; |
| 64 | 64 | ||
| 65 | static void nfcsim_cleanup_dev(struct nfcsim *dev, u8 shutdown) | 65 | static void nfcsim_cleanup_dev(struct nfcsim *dev, u8 shutdown) |
| 66 | { | 66 | { |
| @@ -481,7 +481,7 @@ static void nfcsim_free_device(struct nfcsim *dev) | |||
| 481 | kfree(dev); | 481 | kfree(dev); |
| 482 | } | 482 | } |
| 483 | 483 | ||
| 484 | int __init nfcsim_init(void) | 484 | static int __init nfcsim_init(void) |
| 485 | { | 485 | { |
| 486 | int rc; | 486 | int rc; |
| 487 | 487 | ||
| @@ -522,7 +522,7 @@ exit: | |||
| 522 | return rc; | 522 | return rc; |
| 523 | } | 523 | } |
| 524 | 524 | ||
| 525 | void __exit nfcsim_exit(void) | 525 | static void __exit nfcsim_exit(void) |
| 526 | { | 526 | { |
| 527 | nfcsim_cleanup_dev(dev0, 1); | 527 | nfcsim_cleanup_dev(dev0, 1); |
| 528 | nfcsim_cleanup_dev(dev1, 1); | 528 | nfcsim_cleanup_dev(dev1, 1); |
