Abstractions are frowned upon. cocci script: virtual context virtual patch virtual org virtual report @@ expression ptr; @@ - dm_alloc(ptr) + kzalloc(ptr, GFP_KERNEL) @@ expression ptr, size; @@ - dm_realloc(ptr, size) + krealloc(ptr, size, GFP_KERNEL) @@ expression ptr; @@ - dm_free(ptr) + kfree(ptr) v2: use GFP_KERNEL, not GFP_ATOMIC. add cocci script Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> |
||
---|---|---|
.. | ||
dce80 | ||
dce110 | ||
dce112 | ||
bios_parser2.c | ||
bios_parser2.h | ||
bios_parser_helper.c | ||
bios_parser_helper.h | ||
bios_parser_interface.c | ||
bios_parser_types_internal2.h | ||
bios_parser_types_internal.h | ||
bios_parser.c | ||
bios_parser.h | ||
command_table2.c | ||
command_table2.h | ||
command_table_helper2.c | ||
command_table_helper2.h | ||
command_table_helper.c | ||
command_table_helper.h | ||
command_table.c | ||
command_table.h | ||
Makefile |