From: Daniel Walter <d.walter@0x90.at>
To: rui.zhang@intel.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH][TRIVIAL] [thermal] fix unused variable warning
Date: Mon, 10 Oct 2011 12:05:55 +0200 [thread overview]
Message-ID: <20111010100555.GA33394@0x90.at> (raw)
[thermal] fix unused variable warning
thermal_event_seqnum is only used if CONFIG_NET is defined.
Signed-off-by: Daniel Walter <d.walter@0x90.at>
---
drivers/thermal/thermal_sys.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c
index 708f8e9..def02da 100644
--- a/drivers/thermal/thermal_sys.c
+++ b/drivers/thermal/thermal_sys.c
@@ -60,7 +60,9 @@ static LIST_HEAD(thermal_tz_list);
static LIST_HEAD(thermal_cdev_list);
static DEFINE_MUTEX(thermal_list_lock);
+#ifdef CONFIG_NET
static unsigned int thermal_event_seqnum;
+#endif /* CONFIG_NET */
static int get_idr(struct idr *idr, struct mutex *lock, int *id)
{
next reply other threads:[~2011-10-10 10:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-10 10:05 Daniel Walter [this message]
2011-10-17 11:23 ` [PATCH][TRIVIAL] [thermal] fix unused variable warning Rakib Mullick
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=20111010100555.GA33394@0x90.at \
--to=d.walter@0x90.at \
--cc=linux-kernel@vger.kernel.org \
--cc=rui.zhang@intel.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