From: H Hartley Sweeten Date: Mon, 7 May 2012 10:31:28 +0000 (+0200) Subject: NFC: The NFC genl family structure should not be exposed globally X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e5fe4cf8ee2bf15c0f44f9eba06147cdddbddf6d;p=openwrt%2Fstaging%2Fblogic.git 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 Cc: Lauro Ramos Venancio Cc: Aloisio Almeida Jr Cc: Samuel Ortiz Cc: "David S. Miller" Signed-off-by: Samuel Ortiz Signed-off-by: John W. Linville --- diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c index 77dae74832d3..581d419083aa 100644 --- a/net/nfc/netlink.c +++ b/net/nfc/netlink.c @@ -33,7 +33,7 @@ static struct genl_multicast_group nfc_genl_event_mcgrp = { .name = NFC_GENL_MCAST_EVENT_NAME, }; -struct genl_family nfc_genl_family = { +static struct genl_family nfc_genl_family = { .id = GENL_ID_GENERATE, .hdrsize = 0, .name = NFC_GENL_NAME,