* [PATCH] platform:x86: Fix warnings in telemetry debugfs
@ 2016-01-20 6:50 Souvik Kumar Chakravarty
2016-01-21 21:51 ` Darren Hart
0 siblings, 1 reply; 2+ messages in thread
From: Souvik Kumar Chakravarty @ 2016-01-20 6:50 UTC (permalink / raw)
To: platform-driver-x86; +Cc: dvhart, linux-kernel, Souvik Kumar Chakravarty
This patch fixes compile time warnings when CONFIG_PM_SLEEP
is undefined. In this case sleep related counters are unused.
Signed-off-by: Souvik Kumar Chakravarty <souvik.k.chakravarty@intel.com>
---
drivers/platform/x86/intel_telemetry_debugfs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/platform/x86/intel_telemetry_debugfs.c b/drivers/platform/x86/intel_telemetry_debugfs.c
index 5b31d15..f5134ac 100644
--- a/drivers/platform/x86/intel_telemetry_debugfs.c
+++ b/drivers/platform/x86/intel_telemetry_debugfs.c
@@ -96,9 +96,11 @@
} \
}
+#ifdef CONFIG_PM_SLEEP
static u8 suspend_prep_ok;
static u32 suspend_shlw_ctr_temp, suspend_deep_ctr_temp;
static u64 suspend_shlw_res_temp, suspend_deep_res_temp;
+#endif
struct telemetry_susp_stats {
u32 shlw_swake_ctr;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] platform:x86: Fix warnings in telemetry debugfs
2016-01-20 6:50 [PATCH] platform:x86: Fix warnings in telemetry debugfs Souvik Kumar Chakravarty
@ 2016-01-21 21:51 ` Darren Hart
0 siblings, 0 replies; 2+ messages in thread
From: Darren Hart @ 2016-01-21 21:51 UTC (permalink / raw)
To: Souvik Kumar Chakravarty; +Cc: platform-driver-x86, linux-kernel
On Wed, Jan 20, 2016 at 12:20:46PM +0530, Souvik Kumar Chakravarty wrote:
> This patch fixes compile time warnings when CONFIG_PM_SLEEP
> is undefined. In this case sleep related counters are unused.
>
> Signed-off-by: Souvik Kumar Chakravarty <souvik.k.chakravarty@intel.com>
Thanks, queued to testing.
--
Darren Hart
Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-21 21:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-20 6:50 [PATCH] platform:x86: Fix warnings in telemetry debugfs Souvik Kumar Chakravarty
2016-01-21 21:51 ` Darren Hart
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.