diff options
author | Christian König <[email protected]> | 2020-12-18 14:42:43 +0100 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2020-12-18 15:14:17 +0100 |
commit | f96f62597ea48cc15d6b16bddf05dc25437dcf2d (patch) | |
tree | 8f206d6d3627270f53a5a81f9680c3dfe92a4df0 | |
parent | 660a59953f4ff8a4958e73f7618445ff537582b2 (diff) |
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 <[email protected]>
Reported-by: Mike Galbraith <[email protected]>
Tested-by: Mike Galbraith <[email protected]>
References: https://lore.kernel.org/lkml/[email protected]/
Reviewed-by: David Airlie <[email protected]>
[davnet: bring commit message up to par.]
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_ttm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c index 128c38c8a837..7dd0c69baa47 100644 --- a/drivers/gpu/drm/qxl/qxl_ttm.c +++ b/drivers/gpu/drm/qxl/qxl_ttm.c @@ -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); if (ttm == 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); return NULL; } |