diff mbox series

drm/qxl: don't allocate a dma_address array

Message ID 20201218134243.110884-1-christian.koenig@amd.com (mailing list archive)
State New, archived
Headers show
Series drm/qxl: don't allocate a dma_address array | expand

Commit Message

Christian König Dec. 18, 2020, 1:42 p.m. UTC
That seems to be unused.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: David Airlie <airlied@redhat.com>
---
 drivers/gpu/drm/qxl/qxl_ttm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Daniel Vetter Dec. 18, 2020, 2:09 p.m. UTC | #1
On Fri, Dec 18, 2020 at 02:42:43PM +0100, Christian König wrote:
> That seems to be unused.
> 
> Signed-off-by: Christian König <christian.koenig@amd.com>
> Reviewed-by: David Airlie <airlied@redhat.com>

Dave asked me to pull this into drm-next directly, so I've done that.

For next time around please reference the bug reporter and credit them
properly. I've fixed that up while applying.

Cheers, Daniel

> ---
>  drivers/gpu/drm/qxl/qxl_ttm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c
> index d8ecfb8b3193..66640f4947bd 100644
> --- a/drivers/gpu/drm/qxl/qxl_ttm.c
> +++ b/drivers/gpu/drm/qxl/qxl_ttm.c
> @@ -116,7 +116,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;
>  	}
> -- 
> 2.25.1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox series

Patch

diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c
index d8ecfb8b3193..66640f4947bd 100644
--- a/drivers/gpu/drm/qxl/qxl_ttm.c
+++ b/drivers/gpu/drm/qxl/qxl_ttm.c
@@ -116,7 +116,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;
 	}