Commit f96f6259 authored by Christian König's avatar Christian König Committed by Daniel Vetter

drm/qxl: don't allocate a dma_address array

That seems to be unused.

Daniel: Mike reported a warning when booting with qxl, which this
patch fixes:

[    1.815561] WARNING: CPU: 7 PID: 355 at drivers/gpu/drm/ttm/ttm_pool.c:365 ttm_pool_alloc+0x41b/0x540 [ttm]
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reported-by: default avatarMike Galbraith <efault@gmx.de>
Tested-by: default avatarMike Galbraith <efault@gmx.de>
References: https://lore.kernel.org/lkml/7cb43d5b-4e6a-defc-1ab6-5f713ad5a963@amd.com/Reviewed-by: default avatarDavid Airlie <airlied@redhat.com>
[davnet: bring commit message up to par.]
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20201218134243.110884-1-christian.koenig@amd.com
parent 660a5995
...@@ -115,7 +115,7 @@ static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo, ...@@ -115,7 +115,7 @@ static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo,
ttm = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); ttm = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL);
if (ttm == NULL) if (ttm == NULL)
return NULL; return NULL;
if (ttm_dma_tt_init(ttm, bo, page_flags, ttm_cached)) { if (ttm_tt_init(ttm, bo, page_flags, ttm_cached)) {
kfree(ttm); kfree(ttm);
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment