Skip to content

Commit 7885f2f

Browse files
souvikchakravartydvhart
authored andcommitted
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 <souvik.k.chakravarty@intel.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
1 parent 404a474 commit 7885f2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/platform/x86/intel_telemetry_debugfs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@
9696
} \
9797
}
9898

99+
#ifdef CONFIG_PM_SLEEP
99100
static u8 suspend_prep_ok;
100101
static u32 suspend_shlw_ctr_temp, suspend_deep_ctr_temp;
101102
static u64 suspend_shlw_res_temp, suspend_deep_res_temp;
103+
#endif
102104

103105
struct telemetry_susp_stats {
104106
u32 shlw_swake_ctr;

0 commit comments

Comments
 (0)