-
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
cpu/cortexm_common: Make cpu.h IWYU clean #21050
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For `gpio_ll_print_conf()` we need to include `<stdio.h>`, when not using `fmt.h`.
maribu
requested review from
MrKevinWeiss,
aabadie,
vincent-d,
benpicco,
dylad,
keestux,
gschorcht,
kaspar030 and
bergzand
as code owners
November 27, 2024 08:10
github-actions
bot
added
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
Area: drivers
Area: Device drivers
Platform: ESP
Platform: This PR/issue effects ESP-based platforms
Area: cpu
Area: CPU/MCU ports
labels
Nov 27, 2024
maribu
added
Type: cleanup
The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
and removed
Area: drivers
Area: Device drivers
Platform: ESP
Platform: This PR/issue effects ESP-based platforms
labels
Nov 27, 2024
maribu
force-pushed
the
cpu/cortexm_common/iwyu-clean
branch
from
November 27, 2024 08:18
52e1d02
to
44c0675
Compare
github-actions
bot
added
Area: network
Area: Networking
Area: pkg
Area: External package ports
Area: drivers
Area: Device drivers
Platform: ESP
Platform: This PR/issue effects ESP-based platforms
labels
Nov 27, 2024
maribu
removed
Area: network
Area: Networking
Area: pkg
Area: External package ports
Area: drivers
Area: Device drivers
Platform: ESP
Platform: This PR/issue effects ESP-based platforms
labels
Nov 27, 2024
benpicco
approved these changes
Nov 27, 2024
github-merge-queue
bot
removed this pull request from the merge queue due to failed status checks
Nov 27, 2024
There is clearly no reason `cpu.h` should `#include <stdio.h>`. Also add an export pragma to `cpu_conf.h`, as portable code is expected to include `cpu.h` (which exists across MCU families in RIOT), and not `cpu_conf.h` (which only exists for some MCU families).
maribu
force-pushed
the
cpu/cortexm_common/iwyu-clean
branch
from
November 27, 2024 10:57
44c0675
to
faa3727
Compare
github-actions
bot
added
Area: network
Area: Networking
Area: pkg
Area: External package ports
Area: drivers
Area: Device drivers
Platform: ESP
Platform: This PR/issue effects ESP-based platforms
Area: examples
Area: Example Applications
labels
Nov 27, 2024
maribu
removed
Area: network
Area: Networking
Area: pkg
Area: External package ports
Area: drivers
Area: Device drivers
Platform: ESP
Platform: This PR/issue effects ESP-based platforms
Area: examples
Area: Example Applications
labels
Nov 27, 2024
Thx :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: cpu
Area: CPU/MCU ports
CI: no fast fail
don't abort PR build after first error
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
Type: cleanup
The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contribution description
#include <stdio.h>
fromcpu.h
. This clearly should not belong herecpu.h
including<stdio.h>
. Those missing includes are added first to ease bisectingcpu_conf.h
, as portable code is expected to not includecpu_conf.h
directly (which does not exist across MCU families), but indirectly viacpu.h
Testing procedure
Green CI
Issues/PRs references
Split out of #21029