Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1302939 > unrolled thread

[PATCH] tc1100-wmi: fix build warning when CONFIG_PM not enabled

Started byColin King <colin.king@canonical.com>
First post2016-01-06 19:10 +0100
Last post2016-01-11 19:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] tc1100-wmi: fix build warning when CONFIG_PM not enabled Colin King <colin.king@canonical.com> - 2016-01-06 19:10 +0100
    Re: [PATCH] tc1100-wmi: fix build warning when CONFIG_PM not enabled Darren Hart <dvhart@infradead.org> - 2016-01-11 19:40 +0100

#1302939 — [PATCH] tc1100-wmi: fix build warning when CONFIG_PM not enabled

FromColin King <colin.king@canonical.com>
Date2016-01-06 19:10 +0100
Subject[PATCH] tc1100-wmi: fix build warning when CONFIG_PM not enabled
Message-ID<qO0H1-4Es-13@gated-at.bofh.it>
From: Colin Ian King <colin.king@canonical.com>

Conditionally declare suspend_data on CONFIG_PM to avoid
the following warning when CONFIG_OM is not enabled:

drivers/platform/x86/tc1100-wmi.c:55:27: warning:
  'suspend_data' defined but not used [-Wunused-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/platform/x86/tc1100-wmi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/platform/x86/tc1100-wmi.c b/drivers/platform/x86/tc1100-wmi.c
index 89aa976..65b0a48 100644
--- a/drivers/platform/x86/tc1100-wmi.c
+++ b/drivers/platform/x86/tc1100-wmi.c
@@ -52,7 +52,9 @@ struct tc1100_data {
 	u32 jogdial;
 };
 
+#ifdef CONFIG_PM
 static struct tc1100_data suspend_data;
+#endif
 
 /* --------------------------------------------------------------------------
 				Device Management
-- 
2.7.0.rc3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1306593

FromDarren Hart <dvhart@infradead.org>
Date2016-01-11 19:40 +0100
Message-ID<qPPxL-6bh-3@gated-at.bofh.it>
In reply to#1302939
On Wed, Jan 06, 2016 at 06:02:59PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> Conditionally declare suspend_data on CONFIG_PM to avoid
> the following warning when CONFIG_OM is not enabled:
> 
> drivers/platform/x86/tc1100-wmi.c:55:27: warning:
>   'suspend_data' defined but not used [-Wunused-variable]
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Queued, thank you.

-- 
Darren Hart
Intel Open Source Technology Center

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web