Skip to content

Commit

Permalink
intel_telemetry_debugfs: Fix unused warnings in telemetry debugfs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Souvik Kumar Chakravarty authored and Darren Hart committed Jan 24, 2016
1 parent 404a474 commit 7885f2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/platform/x86/intel_telemetry_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7885f2f

Please sign in to comment.