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
Checkpatch script #187
Checkpatch script #187
Conversation
thanks @arnopo to introduce checking tool. Will you have a following up patch to use it in the CI? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
@wjliang after the release, we will see about rolling this into the CI process.
|
Initial version of checkpatch tool cloned from zephyr project. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Fix coding style reported by do_checkpatch.sh Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Fix declaration of the the function pointer type reported by checkpatch tool. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Align coding rule with checkpatch recommendation concerning the comparison to null. Some comparisons in macro have not be fixed for readability. Examples of code not updated: VQ_PARAM_CHK(ring == NULL, status, ERROR_VQUEUE_INVLD_PARAM); VQASSERT(vq, cookie != NULL, "enqueuing with no cookie"); Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Introduce checkpatch script, for openamp coding rules check.
These scripts have been cherry-picked from zephyr project
some additional patches fix the code according to the do_checkpatch result