Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Christian König <christian.koenig@amd.com>
Reported-by: Mike Galbraith <efault@gmx.de>
Tested-by: Mike Galbraith <efault@gmx.de>
References: https://lore.kernel.org/lkml/7cb43d5b-4e6a-defc-1ab6-5f713ad5a963@amd.com/
Reviewed-by: David Airlie <airlied@redhat.com>
[davnet: bring commit message up to par.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20201218134243.110884-1-christian.koenig@amd.com

authored by

Christian König and committed by
Daniel Vetter
f96f6259 660a5995

+1 -1
+1 -1
drivers/gpu/drm/qxl/qxl_ttm.c
··· 115 115 ttm = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); 116 116 if (ttm == NULL) 117 117 return NULL; 118 - if (ttm_dma_tt_init(ttm, bo, page_flags, ttm_cached)) { 118 + if (ttm_tt_init(ttm, bo, page_flags, ttm_cached)) { 119 119 kfree(ttm); 120 120 return NULL; 121 121 }