[PATCH 2/8] dal: remove some unused wrappers
Dave Airlie
airlied at gmail.com
Wed Dec 14 21:04:20 UTC 2016
On 15 Dec. 2016 02:27, "Harry Wentland" <harry.wentland at amd.com> wrote:
They are still used all over the place (e.g. dc/dce110/dce110_resource.c:41
3).
We should at least do an spatch to use kzalloc/krealloc/kfree across the
board if the wrappers are an issue.
Some are used, these 3 defines are not, there is another header defining
them,
But yes it would be good to drop all alloc wrappers
Dave.
NAKed
Harry
On 2016-12-13 01:41 AM, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c
> b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c
> index 9d51259..9c852a3 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c
> @@ -36,10 +36,6 @@
> #include "amdgpu_dm_types.h"
> #include "amdgpu_pm.h"
>
> -#define dm_alloc(size) kzalloc(size, GFP_KERNEL)
> -#define dm_realloc(ptr, size) krealloc(ptr, size, GFP_KERNEL)
> -#define dm_free(ptr) kfree(ptr)
> -
> /**********************************************************
> ********************
> * IRQ Interfaces.
> ************************************************************
> *****************/
>
> _______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20161215/59207bec/attachment.html>
More information about the amd-gfx
mailing list