-
Notifications
You must be signed in to change notification settings - Fork 3k
Remove mbed_trace dependency to Nanomesh headers #11408
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
Conversation
My recollection is that the ns_types.h was to overcome some compiler glitches in stdint etc on some platforms (and maybe silence some compiler warnings?). Not sure if it's still needed. Probably can be removed here. ns_trace.h compatibility glue could maybe add it, so ns_trace.h includes ns_types.h then mbed_trace.h? |
@SeppoTakalo What do you think? |
This library only uses standard types from C99, and thus does not need compiler specific tweaks from ns_types.h
4ee572c
to
4084145
Compare
I'm not sure there is anything in particular that the tracing library itself depends on from To my understanding, the header itself only uses standard types I would like to push this as is, as we would like to use this in bare metal builds. Its a bit annoying to |
The littlefs tests seemed to fail, because this is not in: https://github.com/ARMmbed/mbed-os/pull/11419/files Not sure why, but they seems to somehow include |
The issue was more subtle, as I recall - including stdint.h "bare" could mess up later users - eg not defining IIRC, all nanostack files include "ns_trace.h" rather than "mbed_trace.h", so if that is modified to include "ns_types.h" first before including "mbed_trace.h", then this change should be 100% solid from Nanostack's PoV. |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
@SeppoTakalo this PR needs na update or is it good as it is (nanostack is being updated in separate PR and does not have anything related to this PR, correct?) |
This incorporates my requested change to |
@0xc0170 this is now good to go. Not a high priority, but if this still can, I would prefer to have it already in RC2 or RC3, however, if not possible, the next patch release is acceptable as well. |
CI started |
Follow on RCs should really only be used for blocking / critical fixes. As this appears to be neither and we already have 'too' many things going to RC2, I think this needs to go to 5.14.1. |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
This library only uses standard types from C99, and
thus does not need compiler specific tweaks from ns_types.h
Reason for dropping the Nanomesh header from mbed-trace, is that it now allows applications to use tracing library in BareMetal builds without dependency to Nanomesh.
Pull request type
Reviewers
@kjbracey-arm
Release Notes