From: Marc Kleine-Budde <mkl@pengutronix.de>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, linux-can@vger.kernel.org,
kernel@pengutronix.de, Daniel Baluta <daniel.baluta@gmail.com>,
Daniel Baluta <dbaluta@ixiacom.com>,
Marc Kleine-Budde <mkl@pengutronix.de>
Subject: [PATCH 1/2] can: fix sparse warning for cgw_list
Date: Mon, 16 Apr 2012 21:32:25 +0200 [thread overview]
Message-ID: <1334604746-24556-2-git-send-email-mkl@pengutronix.de> (raw)
In-Reply-To: <1334604746-24556-1-git-send-email-mkl@pengutronix.de>
From: Daniel Baluta <daniel.baluta@gmail.com>
Make cgw_list static to remove the following sparse warning:
net/can/gw.c:69:1: warning: symbol 'cgw_list' was not declared.
Should it be static?
Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
net/can/gw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/can/gw.c b/net/can/gw.c
index 3d79b12..b41acf2 100644
--- a/net/can/gw.c
+++ b/net/can/gw.c
@@ -66,7 +66,7 @@ MODULE_LICENSE("Dual BSD/GPL");
MODULE_AUTHOR("Oliver Hartkopp <oliver.hartkopp@volkswagen.de>");
MODULE_ALIAS("can-gw");
-HLIST_HEAD(cgw_list);
+static HLIST_HEAD(cgw_list);
static struct notifier_block notifier;
static struct kmem_cache *cgw_cache __read_mostly;
--
1.7.4.1
next prev parent reply other threads:[~2012-04-16 19:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-16 19:32 pull request: linux-can-next 2012-04-16 Marc Kleine-Budde
2012-04-16 19:32 ` Marc Kleine-Budde [this message]
2012-04-16 19:32 ` [PATCH 2/2] net/can: use module_pci_driver Marc Kleine-Budde
2012-04-17 3:48 ` pull request: linux-can-next 2012-04-16 David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1334604746-24556-2-git-send-email-mkl@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=daniel.baluta@gmail.com \
--cc=davem@davemloft.net \
--cc=dbaluta@ixiacom.com \
--cc=kernel@pengutronix.de \
--cc=linux-can@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).