sched/irq: Avoid directly converting variables of type uintptr_t to void #18111
+1
−1
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.
According to MISRA C-2012 Rule 11.6, a cast shall not be performed between pointer to void and an arithmetic type
Summary
To comply with MISRA C-2012 Rule 11.6, the pointer cast has been modified from (FAR void *) to (FAR char *) when converting an integer value obtained via strtoul() to a pointer. This change ensures proper alignment of the converted pointer as required by the MISRA standard.
Impact
No functional changes: The pointer value remains identical
No performance impact: Same runtime behavior
No memory impact: Same memory usage
API compatibility: All callers remain unaffected
Testing
This change has no effet to functional logic.
1.Compilation Test
Pass
Coverity Rescan
Pass