Skip to content

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