]> git.baikalelectronics.ru Git - kernel.git/commitdiff
intel_telemetry_debugfs: Fix unused warnings in telemetry debugfs
authorSouvik Kumar Chakravarty <souvik.k.chakravarty@intel.com>
Wed, 20 Jan 2016 06:50:46 +0000 (12:20 +0530)
committerDarren Hart <dvhart@linux.intel.com>
Sun, 24 Jan 2016 18:14:53 +0000 (10:14 -0800)
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>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/intel_telemetry_debugfs.c

index 5b31d1548c07b1221114031eefc966e02538af2d..f5134acd6ff05d8a5eac080eed9f4b26a96847f3 100644 (file)
        } \
 }
 
+#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;