Return-path: Received: from mail127.messagelabs.com ([216.82.250.115]:26369 "EHLO mail127.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757033Ab2DZSJ0 (ORCPT ); Thu, 26 Apr 2012 14:09:26 -0400 From: H Hartley Sweeten To: Linux Kernel Subject: [PATCH] NFC: netlink.c: local variables should not be exposed globally Date: Thu, 26 Apr 2012 11:09:12 -0700 CC: , , , , , MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-ID: <201204261109.13120.hartleys@visionengravers.com> (sfid-20120426_200945_954563_E0990857) Sender: linux-wireless-owner@vger.kernel.org List-ID: 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" --- diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c index f1829f6..850485d 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,