1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/dc/basics
Harry Wentland 2004f45ef8 drm/amd/display: Use kernel alloc/free
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>
2017-09-28 16:46:15 -04:00
..
conversion.c drm/amd/display: remove calculate_adjustments in conversion.h 2017-09-26 17:10:37 -04:00
conversion.h drm/amd/display: remove calculate_adjustments in conversion.h 2017-09-26 17:10:37 -04:00
fixpt31_32.c drm/amd/display: Output Transfer Function Regamma Refactor 2017-09-26 17:09:48 -04:00
fixpt32_32.c drm/amd/dc: Add dc display driver (v2) 2017-09-26 17:01:32 -04:00
grph_object_id.c drm/amd/dc: Add dc display driver (v2) 2017-09-26 17:01:32 -04:00
log_helpers.c drm/amd/display: log HUBP using DTN logging 2017-09-26 18:15:45 -04:00
logger.c drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
logger.h drm/amd/dc: Add dc display driver (v2) 2017-09-26 17:01:32 -04:00
Makefile drm/amd/display: drop register logger and pid/tgid getters 2017-09-26 17:06:04 -04:00
signal_types.c drm/amd/display: remove SIGNAL_TYPE_WIRELESS 2017-09-26 17:10:31 -04:00
vector.c drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00