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

NFC: Include nci_core.h to nci/lib.c

Include the header to pickup the exported symbol prototype.

Quites the sparse warning:

warning: symbol 'nci_to_errno' 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
502b4240 040487f3

+1
+1
net/nfc/nci/lib.c
··· 31 31 #include <linux/errno.h> 32 32 33 33 #include <net/nfc/nci.h> 34 + #include <net/nfc/nci_core.h> 34 35 35 36 /* NCI status codes to Unix errno mapping */ 36 37 int nci_to_errno(__u8 code)