-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Labels
area: Power ManagementbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: highHigh impact/importance bugHigh impact/importance bug
Description
Several tests fail to build on CC13xx/CC26xx platforms related to power management:
tests/kernel/tickless/tickless_concept/kernel.tickless.concept in cc1352r1_launchxl:tests/kernel/tickless/tickless_concept/kernel.tickless
tests/kernel/timer/timer_api/kernel.timer.tickless in /workdir/zephyr/twister-out/cc1352r1_launchxl/tests/kernel/tickless/tickless_concept/kernel.tickless.concept:tests/kernel/timer/timer_api/kernel.timer
tests/kernel/tickless/tickless_concept/kernel.tickless.concept in cc1352r_sensortag:tests/kernel/tickless/tickless_concept/kernel.tickless
tests/kernel/timer/timer_api/kernel.timer.tickless in /workdir/zephyr/twister-out/cc1352r_sensortag/tests/kernel/tickless/tickless_concept/kernel.tickless.concept:tests/kernel/timer/timer_api/kernel.timer
tests/kernel/tickless/tickless_concept/kernel.tickless.concept in cc26x2r1_launchxl:tests/kernel/tickless/tickless_concept/kernel.tickless
tests/kernel/timer/timer_api/kernel.timer.tickless in /workdir/zephyr/twister-out/cc26x2r1_launchxl/tests/kernel/tickless/tickless_concept/kernel.tickless.concept:tests/kernel/timer/timer_api/kernel.timer
The failure is some form of:
/workdir/zephyr/subsys/power/pm_ctrl.c: In function 'pm_ctrl_disable_state':
/workdir/zephyr/subsys/power/pm_ctrl.c:24:6: error: array subscript is outside array bounds of 'atomic_t[0]' {aka 'int[]'} [-Werror=array-bounds]
24 | v = atomic_inc(&power_state_disable_count[state]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workdir/zephyr/subsys/power/pm_ctrl.c:17:17: note: while referencing 'power_state_disable_count'
17 | static atomic_t power_state_disable_count[POWER_STATE_MAX];
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/workdir/zephyr/subsys/power/pm_ctrl.c: In function 'pm_ctrl_enable_state':
/workdir/zephyr/subsys/power/pm_ctrl.c:36:6: error: array subscript is outside array bounds of 'atomic_t[0]' {aka 'int[]'} [-Werror=array-bounds]
36 | v = atomic_dec(&power_state_disable_count[state]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workdir/zephyr/subsys/power/pm_ctrl.c:17:17: note: while referencing 'power_state_disable_count'
17 | static atomic_t power_state_disable_count[POWER_STATE_MAX];
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/workdir/zephyr/subsys/power/pm_ctrl.c: In function 'pm_ctrl_is_state_enabled':
/workdir/zephyr/subsys/power/pm_ctrl.c:47:21: error: array subscript is outside array bounds of 'atomic_t[0]' {aka 'int[]'} [-Werror=array-bounds]
47 | return (atomic_get(&power_state_disable_count[state]) == 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workdir/zephyr/subsys/power/pm_ctrl.c:17:17: note: while referencing 'power_state_disable_count'
17 | static atomic_t power_state_disable_count[POWER_STATE_MAX];
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Metadata
Metadata
Assignees
Labels
area: Power ManagementbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: highHigh impact/importance bugHigh impact/importance bug