aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2012-03-21 15:55:00 -0400
committerLen Brown <len.brown@intel.com>2012-03-22 01:01:27 -0400
commitb11de07ce561574b6e03c8192b28bad540da8f79 (patch)
tree72e5c0ce57df3d94b62f72a785bce1b37cf8a47c /drivers/thermal
parentc16fa4f2ad19908a47c63d8fa436a1178438c7e7 (diff)
drivers/thermal/thermal_sys.c: fix build warning
With CONFIG_NET=n: drivers/thermal/thermal_sys.c:63: warning: 'thermal_event_seqnum' defined but not used Move 'thermal_event_seqnum' definition inside the '#ifdef CONFIG_NET' [akpm@linux-foundation.org: make thermal_event_seqnum local to generate_netlink_event()] Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Guenter Roeck <guenter.roeck@ericsson.com> Acked-by: Durgadoss R <durgadoss.r@intel.com> Cc: Jean Delvare <khali@linux-fr.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/thermal_sys.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c
index 220ce7e31cf5..859b80b6d376 100644
--- a/drivers/thermal/thermal_sys.c
+++ b/drivers/thermal/thermal_sys.c
@@ -60,8 +60,6 @@ static LIST_HEAD(thermal_tz_list);
60static LIST_HEAD(thermal_cdev_list); 60static LIST_HEAD(thermal_cdev_list);
61static DEFINE_MUTEX(thermal_list_lock); 61static DEFINE_MUTEX(thermal_list_lock);
62 62
63static unsigned int thermal_event_seqnum;
64
65static int get_idr(struct idr *idr, struct mutex *lock, int *id) 63static int get_idr(struct idr *idr, struct mutex *lock, int *id)
66{ 64{
67 int err; 65 int err;
@@ -1312,6 +1310,7 @@ int thermal_generate_netlink_event(u32 orig, enum events event)
1312 void *msg_header; 1310 void *msg_header;
1313 int size; 1311 int size;
1314 int result; 1312 int result;
1313 static unsigned int thermal_event_seqnum;
1315 1314
1316 /* allocate memory */ 1315 /* allocate memory */
1317 size = nla_total_size(sizeof(struct thermal_genl_event)) + \ 1316 size = nla_total_size(sizeof(struct thermal_genl_event)) + \