thermal: fix compiler warning

thermal_event_seqnum is not used when CONFIG_NET=n, which causes a
compiler warning.  Move the declaration within the CONFIG_NET clause to
eliminate the warning.

Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
This commit is contained in:
Bryan Huntsman
2011-10-04 15:49:21 -07:00
parent 43208a0bf5
commit d0c5dd51e1

View File

@@ -60,8 +60,6 @@ static LIST_HEAD(thermal_tz_list);
static LIST_HEAD(thermal_cdev_list); static LIST_HEAD(thermal_cdev_list);
static DEFINE_MUTEX(thermal_list_lock); static DEFINE_MUTEX(thermal_list_lock);
static unsigned int thermal_event_seqnum;
static int get_idr(struct idr *idr, struct mutex *lock, int *id) static int get_idr(struct idr *idr, struct mutex *lock, int *id)
{ {
int err; int err;
@@ -1318,6 +1316,8 @@ void thermal_zone_device_unregister(struct thermal_zone_device *tz)
EXPORT_SYMBOL(thermal_zone_device_unregister); EXPORT_SYMBOL(thermal_zone_device_unregister);
#ifdef CONFIG_NET #ifdef CONFIG_NET
static unsigned int thermal_event_seqnum;
static struct genl_family thermal_event_genl_family = { static struct genl_family thermal_event_genl_family = {
.id = GENL_ID_GENERATE, .id = GENL_ID_GENERATE,
.name = THERMAL_GENL_FAMILY_NAME, .name = THERMAL_GENL_FAMILY_NAME,