linux/drivers/gpu/drm/amd
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
..
acp drm: amd: remove broken include path 2017-03-14 19:19:44 -04:00
amdgpu drm/amdgpu: drop experimental flag for vega10 2017-09-26 18:17:46 -04:00
amdkfd drm/amdkfd: Use PASID manager from KGD 2017-09-26 13:07:04 -04:00
display drm/amd/display: Use kernel alloc/free 2017-09-28 16:46:15 -04:00
include drm/amd: Add missing SURFACE_TMZ register shift/mask 2017-09-26 18:15:20 -04:00
lib drm/amd: Closed hash table with low overhead (v2) 2017-09-26 14:53:19 -04:00
powerplay drm/amd/powerplay: delete dead code in smumgr 2017-09-26 15:14:36 -04:00
scheduler drm/amdgpu: discard commands of killed processes 2017-08-29 15:27:42 -04:00