Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

H Hartley Sweeten and committed by
John W. Linville
bd007bea 799030b7

+1 -1
+1 -1
net/nfc/hci/core.c
··· 585 585 return 0; 586 586 } 587 587 588 - struct nfc_ops hci_nfc_ops = { 588 + static struct nfc_ops hci_nfc_ops = { 589 589 .dev_up = hci_dev_up, 590 590 .dev_down = hci_dev_down, 591 591 .start_poll = hci_start_poll,