-
Notifications
You must be signed in to change notification settings - Fork 2k
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
core: Guard pm_set_lowest with module_periph_pm #20508
Conversation
6c414a1
to
e3da305
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We actually noticed this in the GBA port, where the periph_pm was NOT provided and had a linking error. Normally periph_pm is brought in (for everything) with FEATURES_OPTIONAL
which is why only the linker failed and not a missing feature message.
This is pretty straight forward, in files that are included everywhere, functions using optional modules should be guarded.
one ACK.
One more ack would be nice :) |
Contribution description
🙃
I think
pm_set_lowest()
needs to be guarded against the moduleperiph_pm
. Otherwise you can not build RIOT ifperiph_pm
is not provided by the target board.I wasn't super sure if it needs to be
periph_pm
maybe it should bepm_layered
instead?Testing procedure
CI, I guess? Very unsure here!