Skip to content

Commit 9f81205

Browse files
XenuIsWatchingkartben
authored andcommitted
pm: fix warning for missing initializer
A warning is giving for missing initalizer for field `exit_latency_us` of `struct pm_state_info`. This adds the additional init fields. Signed-off-by: Ryan McClelland <[email protected]>
1 parent 1a4b7ab commit 9f81205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/pm/pm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void pm_system_resume(void)
121121
#ifdef CONFIG_SYS_CLOCK_EXISTS
122122
sys_clock_idle_exit();
123123
#endif /* CONFIG_SYS_CLOCK_EXISTS */
124-
z_cpus_pm_state[id] = (struct pm_state_info){PM_STATE_ACTIVE,
124+
z_cpus_pm_state[id] = (struct pm_state_info){PM_STATE_ACTIVE, 0, false,
125125
0, 0};
126126
}
127127
}

0 commit comments

Comments
 (0)