[linux-yocto] [PATCH 09/13] intel_telemetry_debugfs: Fix unused warnings in telemetry debugfs
ong.hock.yu at intel.com
ong.hock.yu at intel.com
Tue Mar 29 17:37:40 PDT 2016
From: Souvik Kumar Chakravarty <souvik.k.chakravarty at intel.com>
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 at intel.com>
Signed-off-by: Darren Hart <dvhart at linux.intel.com>
(cherry picked from commit 156b864d2c212b260f1f6dc90b554646ddc9dcb0)
Signed-off-by: Yu, Ong Hock <ong.hock.yu at 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.9.1
More information about the linux-yocto
mailing list