Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1312932
| From | Souvik Kumar Chakravarty <souvik.k.chakravarty@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] platform:x86: Fix warnings in telemetry debugfs |
| Date | 2016-01-20 07:50 +0100 |
| Message-ID | <qSUKC-2IV-19@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] platform:x86: Fix warnings in telemetry debugfs Souvik Kumar Chakravarty <souvik.k.chakravarty@intel.com> - 2016-01-20 07:50 +0100 Re: [PATCH] platform:x86: Fix warnings in telemetry debugfs Darren Hart <dvhart@infradead.org> - 2016-01-21 23:00 +0100
csiph-web