Skip to content

Commit e5fe4cf

Browse files
H Hartley Sweetenlinvjw
authored andcommitted
NFC: The NFC genl family structure should not be exposed globally
The variable 'nfc_genl_family' is only referenced in this file and should be marked static to prevent it from being exposed globally. Quites the sparse warning: warning: symbol 'nfc_genl_family' 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>
1 parent bd007be commit e5fe4cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/nfc/netlink.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static struct genl_multicast_group nfc_genl_event_mcgrp = {
3333
.name = NFC_GENL_MCAST_EVENT_NAME,
3434
};
3535

36-
struct genl_family nfc_genl_family = {
36+
static struct genl_family nfc_genl_family = {
3737
.id = GENL_ID_GENERATE,
3838
.hdrsize = 0,
3939
.name = NFC_GENL_NAME,

0 commit comments

Comments
 (0)