Skip to content

checkpatch: support function pointers for unnamed function definition #9581

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

Closed

Conversation

ajaykish
Copy link
Contributor

@ajaykish ajaykish commented Aug 23, 2018

Current unnamed function definition argument does not include function
pointer cases and it reports warnings like:

WARNING: function definition argument 'void' should also have an identifier name
+unsigned int (*dummy)(void);

Support function pointers for unnamed function arguments.

Fixes #9411

Signed-off-by: Ajay Kishore [email protected]

@codecov-io
Copy link

Codecov Report

Merging #9581 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #9581   +/-   ##
=======================================
  Coverage   52.15%   52.15%           
=======================================
  Files         212      212           
  Lines       25916    25916           
  Branches     5582     5582           
=======================================
  Hits        13517    13517           
  Misses      10149    10149           
  Partials     2250     2250

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1d4e089...f59649a. Read the comment docs.

@pfalcon
Copy link
Collaborator

pfalcon commented Sep 5, 2018

Reading the description, what does "and it through warnings." means? Perhaps, it can be rewritten for clarity?

Also, adding an example to commit message would help.

Current unnamed function definition argument does not include function
pointer cases and it reports warnings like:

WARNING: function definition argument 'void' should also have an
identifier name
+unsigned int (*dummy)(void);

Support function pointers for unnamed function arguments.

Fixes zephyrproject-rtos#9411

Signed-off-by: Ajay Kishore <[email protected]>
@spoorthik spoorthik requested a review from nashif October 26, 2018 08:23
@nashif
Copy link
Member

nashif commented Nov 22, 2018

since this is a warning, we are going to ignore it and avoid changing checkpatch, a project not maintained by zephyr. Ideally this should be submitted to the Linux kernel tree.

@nashif nashif closed this Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants