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:
@@ -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;
|
||||
@@ -1318,6 +1316,8 @@ void thermal_zone_device_unregister(struct thermal_zone_device *tz)
|
||||
EXPORT_SYMBOL(thermal_zone_device_unregister);
|
||||
|
||||
#ifdef CONFIG_NET
|
||||
static unsigned int thermal_event_seqnum;
|
||||
|
||||
static struct genl_family thermal_event_genl_family = {
|
||||
.id = GENL_ID_GENERATE,
|
||||
.name = THERMAL_GENL_FAMILY_NAME,
|
||||
|
||||
Reference in New Issue
Block a user