-
Notifications
You must be signed in to change notification settings - Fork 1.5k
sched: Fix MISRA-C violations #18083
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
Open
Fix-Point
wants to merge
11
commits into
apache:master
Choose a base branch
from
Fix-Point:upstreaming_2026_01_19
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+345
−363
Conversation
This file contains hidden or 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
8323a6e to
7a8855a
Compare
xiaoxiang781216
approved these changes
Jan 21, 2026
FOREACH_ARG Add parameter field. Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
Adjust the definition and fix CONCATENATE. Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
… unit Fix for MISRA-C rule 8.10 Signed-off-by: jiangtao16 <jiangtao16@xiaomi.com>
Fix MISRA 2004 rule 10.1 implicit type conversion Signed-off-by: jiangtao16 <jiangtao16@xiaomi.com>
Fix timer multiple return. Signed-off-by: jiangtao16 <jiangtao16@xiaomi.com>
Fix MISRA Rule 10.4 convert signed variabled to unsigned ones. Signed-off-by: jiangtao16 <jiangtao16@xiaomi.com>
Remove CONFIG_DEBUG_FEATURES to check illegal abstime. Signed-off-by: jiangtao16 <jiangtao16@xiaomi.com>
Fix MISRA Rule 10.3 exist clock to sclock cause wide type implicit conversion to narrow type, NSEC_PER_USEC to l Signed-off-by: jiangtao16 <jiangtao16@xiaomi.com>
vela caros CI compilation error: 'stop' may be used uninitialized in this function. Signed-off-by: jiangtao16 <jiangtao16@xiaomi.com>
keep type of constants as ul add clock_t cast to tick relate macro. Signed-off-by: jiangtao16 <jiangtao16@xiaomi.com>
This commit fixed a compilation error about the undefined sizeof(struct tls_info_s). Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
7a8855a to
2229581
Compare
Contributor
|
@Fix-Point seems like we defined a symbol that is defined in nimble: /github/workspace/sources/apps/wireless/bluetooth/nimble/mynewt-nimble/nimble/host/src/ble_gatts_lcl.c:95: error: "STRINGIFY" redefined [-Werror] |
Contributor
Contributor
|
Hi @acassis I think it's related to some recent changes. This is also present in the msvc job.( is linked to this change include/nuttx/macro.h ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Arch: x86_64
Issues related to the x86_64 architecture
Area: File System
File System issues
Area: OS Components
OS Components issues
Size: L
The size of the change in this PR is large
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.
Summary
This pull request consists of a series of commits primarily focused on improving code quality, enhancing type safety, addressing compilation warnings, and ensuring compliance with MISRA-C coding standards across various subsystems of the NuttX operating system.
Impact
timer_create,sem_wait,clock_gettime). The primary user-facing impact is increased code reliability and stability due to stricter type checking and error handling.nxclock_settime()symbol will need to adapt, as it has been removed.Test
Tested on
rv-virt:smp,ostestpassed.