<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On 15 Dec. 2016 02:27, "Harry Wentland" <<a href="mailto:harry.wentland@amd.com">harry.wentland@amd.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">They are still used all over the place (e.g. dc/dce110/dce110_resource.c:41<wbr>3).<br>
<br>
We should at least do an spatch to use kzalloc/krealloc/kfree across the board if the wrappers are an issue.<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Some are used, these 3 defines are not, there is another header defining them,</div><div dir="auto"><br></div><div dir="auto">But yes it would be good to drop all alloc wrappers </div><div dir="auto"><br></div><div dir="auto">Dave.</div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
NAKed<font color="#888888"><br>
<br>
Harry</font><div class="quoted-text"><br>
<br>
On 2016-12-13 01:41 AM, Dave Airlie wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Dave Airlie <<a href="mailto:airlied@redhat.com" target="_blank">airlied@redhat.com</a>><br>
<br>
Signed-off-by: Dave Airlie <<a href="mailto:airlied@redhat.com" target="_blank">airlied@redhat.com</a>><br>
---<br>
 drivers/gpu/drm/amd/display/a<wbr>mdgpu_dm/amdgpu_dm_services.c | 4 ----<br>
 1 file changed, 4 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/<wbr>amdgpu_dm/amdgpu_dm_services.c b/drivers/gpu/drm/amd/display/<wbr>amdgpu_dm/amdgpu_dm_services.c<br>
index 9d51259..9c852a3 100644<br>
--- a/drivers/gpu/drm/amd/display/<wbr>amdgpu_dm/amdgpu_dm_services.c<br>
+++ b/drivers/gpu/drm/amd/display/<wbr>amdgpu_dm/amdgpu_dm_services.c<br>
@@ -36,10 +36,6 @@<br>
 #include "amdgpu_dm_types.h"<br>
 #include "amdgpu_pm.h"<br>
<br>
-#define dm_alloc(size) kzalloc(size, GFP_KERNEL)<br>
-#define dm_realloc(ptr, size) krealloc(ptr, size, GFP_KERNEL)<br>
-#define dm_free(ptr) kfree(ptr)<br>
-<br>
 /****************************<wbr>******************************<wbr>********************<br>
  * IRQ Interfaces.<br>
  ******************************<wbr>******************************<wbr>*****************/<br>
<br>
</blockquote></div><div class="elided-text">
______________________________<wbr>_________________<br>
amd-gfx mailing list<br>
<a href="mailto:amd-gfx@lists.freedesktop.org" target="_blank">amd-gfx@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/amd-gfx</a><br>
</div></blockquote></div><br></div></div></div>