summaryrefslogtreecommitdiffstats
path: root/net/nfc
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-05-07 12:31:27 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-05-15 17:30:30 -0400
commitbd007bea21f3a51fc67cbcec412725b2d86f1b27 (patch)
tree02263504ce2fb60a25efe1a9beb39158ed4404cd /net/nfc
parent799030b75a4398b4e75ca5cb5ec790dc75986111 (diff)
downloadlinux-bd007bea21f3a51fc67cbcec412725b2d86f1b27.tar.gz
linux-bd007bea21f3a51fc67cbcec412725b2d86f1b27.tar.xz
linux-bd007bea21f3a51fc67cbcec412725b2d86f1b27.zip
NFC: HCI ops should not be exposed globally
The variable 'hci_nfc_ops' is only referenced in this file and should be marked static to prevent it from being exposed globally. Quites the sparse warning: warning: symbol 'hci_nfc_ops' was not declared. Should it be static? Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org> Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org> Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/hci/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c
index f7e4f5ae4559..0fdb96f152b1 100644
--- a/net/nfc/hci/core.c
+++ b/net/nfc/hci/core.c
@@ -585,7 +585,7 @@ static int hci_check_presence(struct nfc_dev *nfc_dev,
return 0;
}
-struct nfc_ops hci_nfc_ops = {
+static struct nfc_ops hci_nfc_ops = {
.dev_up = hci_dev_up,
.dev_down = hci_dev_down,
.start_poll = hci_start_poll,