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

Userspace: avoid to convert pointers to incomplete type using the pointer to first item #71981

Conversation

DeHess
Copy link
Collaborator

@DeHess DeHess commented Apr 26, 2024

Fix coding guideline MISRA C:2012 Rule 11.2 in includes:

Conversions shall not be performed between a pointer to an incomplete type and any other type.

This PR is part of the enhancement issue #48002 which port the coding guideline fixes done by BUGSENG on the https://github.com/zephyrproject-rtos/zephyr/tree/v2.7-auditable-branch back to main

The commit in this PR is a subset of the original auditable-branch commit:
9043b65

avoid convert pointers to incomplete type using the pointer to first item

Signed-off-by: Hess Nathan <[email protected]>
@zephyrbot zephyrbot added the area: Userspace Userspace label Apr 26, 2024
@DeHess DeHess changed the title coding guidelines: comply with MISRA C:2012 Rule 11.2 includes: avoid to convert pointers to incomplete type using the pointer to first item (MISRA Rule 11.2) Apr 30, 2024
@DeHess DeHess changed the title includes: avoid to convert pointers to incomplete type using the pointer to first item (MISRA Rule 11.2) includes: avoid to convert pointers to incomplete type using the pointer to first item Apr 30, 2024
@DeHess DeHess changed the title includes: avoid to convert pointers to incomplete type using the pointer to first item Userspace: avoid to convert pointers to incomplete type using the pointer to first item May 13, 2024
@nashif nashif added the area: Coding Guidelines Coding guidelines and style label May 27, 2024
@nashif nashif merged commit 15ddfa8 into zephyrproject-rtos:main Jun 14, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Coding Guidelines Coding guidelines and style area: Userspace Userspace
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants