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

Refactor and add new functions tested by check_kvmalloc_array_zero() #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tititiou36
Copy link
Contributor

Use a table of searched functions that use __GFP_ZERO and to proposed
alternatives.
This makes the code easier to expand.

While at it, scan for new functions.

Signed-off-by: Christophe JAILLET [email protected]

Use a table of searched functions that use __GFP_ZERO and to proposed
alternatives.
This makes the code easier to expand.

While at it, scan for new functions.

Signed-off-by: Christophe JAILLET <[email protected]>
@tititiou36
Copy link
Contributor Author

Hi Dan, this is my first PR for Smatch, so don't hesitate to tell me all I did wrong.
I've left function names and files names as is. It is liekely that "check_kvmalloc_array_zero.c" is not the best wording now.

Fix a Copy/Paste error
The warning message has a hard-coded 'test_bit' but several other function can trigger this warning.
So report the correct function name to be less puzzling.
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.

1 participant