From: Souvik Kumar Chakravarty Date: Wed, 20 Jan 2016 06:50:46 +0000 (+0530) Subject: intel_telemetry_debugfs: Fix unused warnings in telemetry debugfs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7885f2f94489d566559274891cc1400cbc059b10;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git intel_telemetry_debugfs: Fix unused warnings in telemetry debugfs 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 Signed-off-by: Darren Hart --- diff --git a/drivers/platform/x86/intel_telemetry_debugfs.c b/drivers/platform/x86/intel_telemetry_debugfs.c index 5b31d1548c07..f5134acd6ff0 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;