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

core: Guard pm_set_lowest with module_periph_pm #20508

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

Teufelchen1
Copy link
Contributor

@Teufelchen1 Teufelchen1 commented Mar 26, 2024

Contribution description

🙃
I think pm_set_lowest() needs to be guarded against the module periph_pm. Otherwise you can not build RIOT if periph_pm is not provided by the target board.

I wasn't super sure if it needs to be periph_pm maybe it should be pm_layered instead?

Testing procedure

CI, I guess? Very unsure here!

@Teufelchen1 Teufelchen1 requested a review from kaspar030 as a code owner March 26, 2024 18:49
@github-actions github-actions bot added the Area: core Area: RIOT kernel. Handle PRs marked with this with care! label Mar 26, 2024
@MrKevinWeiss MrKevinWeiss changed the title core: Guard pm_set_lowest with module pm_layered core: Guard pm_set_lowest with module_periph_pm Mar 26, 2024
Copy link
Contributor

@MrKevinWeiss MrKevinWeiss left a 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.

@MrKevinWeiss MrKevinWeiss added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Process: needs >1 ACK Integration Process: This PR requires more than one ACK labels Mar 26, 2024
@github-actions github-actions bot added the Process: missing approvals Integration Process: PR needs more ACKS (handled by action) label Mar 26, 2024
@MrKevinWeiss
Copy link
Contributor

One more ack would be nice :)

@riot-ci
Copy link

riot-ci commented Mar 26, 2024

Murdock results

✔️ PASSED

e3da305 core: Guard pm_set_lowest with module periph_pm

Success Failures Total Runtime
10031 0 10031 10m:15s

Artifacts

@benpicco benpicco added the Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer label Mar 26, 2024
@github-actions github-actions bot removed the Process: missing approvals Integration Process: PR needs more ACKS (handled by action) label Mar 26, 2024
@benpicco benpicco added this pull request to the merge queue Mar 26, 2024
Merged via the queue into RIOT-OS:master with commit 84bf921 Mar 27, 2024
28 of 30 checks passed
Teufelchen1 added a commit to Teufelchen1/RIOT that referenced this pull request Mar 29, 2024
@MrKevinWeiss MrKevinWeiss added this to the Release 2024.04 milestone Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: core Area: RIOT kernel. Handle PRs marked with this with care! CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Process: needs >1 ACK Integration Process: This PR requires more than one ACK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants