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

drivers: avoid to use undefined macros in #if expressions #72073

Conversation

DeHess
Copy link
Collaborator

@DeHess DeHess commented Apr 29, 2024

Fix coding guideline MISRA C:2012 Rule 20.9 in drivers:

avoid to use undefined macros in #if expressions

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:
922cde0

- avoid to use undefined macros in #if expressions

Signed-off-by: Hess Nathan <[email protected]>
@DeHess DeHess requested a review from anangl as a code owner April 29, 2024 09:07
@zephyrbot zephyrbot added area: UART Universal Asynchronous Receiver-Transmitter platform: nRF Nordic nRFx Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. labels Apr 29, 2024
@DeHess DeHess changed the title coding guidelines: comply with MISRA Rule 20.9 drivers: avoid to use undefined macros in #if expressions (MISRA Rule 20.9) Apr 30, 2024
@DeHess DeHess changed the title drivers: avoid to use undefined macros in #if expressions (MISRA Rule 20.9) drivers: avoid to use undefined macros in #if expressions Apr 30, 2024
@fabiobaltieri fabiobaltieri merged commit 1486259 into zephyrproject-rtos:main May 6, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: UART Universal Asynchronous Receiver-Transmitter platform: nRF Nordic nRFx Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants