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

sys,examples,tests,fuzzing: add missing includes #17714

Merged
merged 6 commits into from
Mar 1, 2022

Conversation

kfessel
Copy link
Contributor

@kfessel kfessel commented Feb 28, 2022

Contribution description

a huge examples and tests, some sys-modules and fuzzing/gnrc use functions of xtimer, gnrc(/nteif), without including the header, this PR adds these includes.

Testing procedure

  • reading

  • Murdock

  • build them

Issues/PRs references

was found while working on #17693

@github-actions github-actions bot added Area: examples Area: Example Applications Area: network Area: Networking Area: sys Area: System Area: tests Area: tests and testing framework labels Feb 28, 2022
@kfessel kfessel added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Feb 28, 2022
Copy link
Contributor

@fjmolinas fjmolinas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, just header cleanups

@fjmolinas fjmolinas enabled auto-merge March 1, 2022 09:23
@fjmolinas fjmolinas merged commit 32a6bb1 into RIOT-OS:master Mar 1, 2022
@@ -27,8 +27,6 @@

#include "mbox.h"
#include "net/af.h"
#include "net/gnrc.h"
#include "net/gnrc/tcp.h"
Copy link
Contributor

@benpicco benpicco Mar 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now this breaks the sock TCP example

net/sock/tcp.h is supposed to include sock_types.h which is then a stack specific header.
Unfortunately we don't have a sock tcp application to catch this on CI.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, good that you cought it and fixed it with #16723, which will also be a good check to avoid this happening again

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbh I thought #16739 would be less controversial way to get a (compile) test for a generic sock TCP but turns out that was not as easy as I thought

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: examples Area: Example Applications Area: network Area: Networking Area: sys Area: System Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants