lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1326092192-13953-1-git-send-email-Barry.Song@csr.com>
Date:	Mon, 9 Jan 2012 14:56:32 +0800
From:	Barry Song <Barry.Song@....com>
To:	<linux-kernel@...r.kernel.org>
CC:	<sujith.thomas@...el.com>, <rui.zhang@...el.com>,
	<len.brown@...el.com>, <rjw@...k.pl>, <mingo@...e.hu>,
	<durgadoss.r@...el.com>, <workgroup.linux@....com>,
	Barry Song <Baohua.song@....com>,
	Barry Song <Baohua.Song@....com>
Subject: [PATCH] thermal: Fix "warning: 'thermal_event_seqnum' defined but not used"

From: Barry Song <Baohua.song@....com>

Only if CONFIG_NET is enabled, thermal_event_seqnum will
be used.

Signed-off-by: Barry Song <Baohua.Song@....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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ