-
Notifications
You must be signed in to change notification settings - Fork 8.3k
soc: Fix missing mem.h include in stm32h562 #81180
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
soc: Fix missing mem.h include in stm32h562 #81180
Conversation
|
Hello @DNedic, and thank you very much for your first pull request to the Zephyr project! |
adbaebc to
3fcfe9f
Compare
This caused failed builds due to the missing DT_SIZE_K(x) macro. Signed-off-by: Djordje Nedic <[email protected]>
3fcfe9f to
77470c8
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.
Sorry but this is not in line with how mem.h is included in other .dtsi files.
Usually they are included in soc packages variant files stm32h563Xi.dtsi for instance (files which actually make use of memory size macros).
In h562 case, we're missing this file, so actually it's not supposed to be compiled.
If you're facing compilation issues, I guess you've defined one out of tree, and this is the file that should include mem.h but maybe you can pushed it in current PR as well ?
|
Upon further inspection, it appears that |
|
@DNedic , can you add a Zephyr Issue with details about the Build failure seen and link the Issue to this PR. |
Yes, and this is probably true for other series as well. But as mentioned, this file isn't supposed to be built outside of a package variant file (which provides flash and ram size and includes mem.h). |
|
I see, I might not be 100% aware of the context here, but at least in C and C++ it is strongly discouraged for anything to depend on the include order, and every source file or header must include everything it needs. In this case you would have to include |
|
Hi @DNedic! To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge. Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁 |
This caused failed builds due to the missing DT_SIZE_K(x) macro.