Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm: Fix possible undefined reference #64154

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

ceolin
Copy link
Member

@ceolin ceolin commented Oct 19, 2023

pm_state_cpu_get_all was declared but only implemented if CONFIG_PM was set.

Adding a test to cover this API too.

Flavio Ceolin added 2 commits October 19, 2023 15:46
Add test for pm_state_cpu_get_all API

Signed-off-by: Flavio Ceolin <[email protected]>
Function pm_state_cpu_get_all is declared in state.h
but it is only implemented if CONFIG_PM is set.

Add an inline implementation for when CONFIG_PM is not set.

Signed-off-by: Flavio Ceolin <[email protected]>
@MaureenHelm MaureenHelm merged commit 9a7a22a into zephyrproject-rtos:main Oct 24, 2023
18 checks passed
@ceolin ceolin deleted the tests/pm branch September 21, 2024 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants