From: Barry Song <Barry.Song@csr.com>
To: <linux-kernel@vger.kernel.org>
Cc: <sujith.thomas@intel.com>, <rui.zhang@intel.com>,
<len.brown@intel.com>, <rjw@sisk.pl>, <mingo@elte.hu>,
<durgadoss.r@intel.com>, <workgroup.linux@csr.com>,
Barry Song <Baohua.song@csr.com>,
Barry Song <Baohua.Song@csr.com>
Subject: [PATCH] thermal: Fix "warning: 'thermal_event_seqnum' defined but not used"
Date: Mon, 9 Jan 2012 14:56:32 +0800 [thread overview]
Message-ID: <1326092192-13953-1-git-send-email-Barry.Song@csr.com> (raw)
From: Barry Song <Baohua.song@csr.com>
Only if CONFIG_NET is enabled, thermal_event_seqnum will
be used.
Signed-off-by: Barry Song <Baohua.Song@csr.com>
---
drivers/thermal/thermal_sys.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c
index dd9a574..11f5955 100644
--- a/drivers/thermal/thermal_sys.c
+++ b/drivers/thermal/thermal_sys.c
@@ -60,8 +60,6 @@ static LIST_HEAD(thermal_tz_list);
static LIST_HEAD(thermal_cdev_list);
static DEFINE_MUTEX(thermal_list_lock);
-static unsigned int thermal_event_seqnum;
-
static int get_idr(struct idr *idr, struct mutex *lock, int *id)
{
int err;
@@ -1304,6 +1302,8 @@ static struct genl_multicast_group thermal_event_mcgrp = {
.name = THERMAL_GENL_MCAST_GROUP_NAME,
};
+static unsigned int thermal_event_seqnum;
+
int generate_netlink_event(u32 orig, enum events event)
{
struct sk_buff *skb;
--
1.7.1
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
reply other threads:[~2012-01-09 6:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1326092192-13953-1-git-send-email-Barry.Song@csr.com \
--to=barry.song@csr.com \
--cc=Baohua.song@csr.com \
--cc=durgadoss.r@intel.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rjw@sisk.pl \
--cc=rui.zhang@intel.com \
--cc=sujith.thomas@intel.com \
--cc=workgroup.linux@csr.com \
/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
all inboxes | Powered by JetHome®