smatch
smatch copied to clipboard
Refactor and add new functions tested by check_kvmalloc_array_zero()
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]
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.