[PATCH 03/12] drm/xe: Remove unnecessary drm_mm.h includes

Cavitt, Jonathan jonathan.cavitt at intel.com
Thu Jul 11 18:35:03 UTC 2024


-----Original Message-----
From: Intel-xe <intel-xe-bounces at lists.freedesktop.org> On Behalf Of Rodrigo Vivi
Sent: Thursday, July 11, 2024 10:12 AM
To: intel-xe at lists.freedesktop.org
Cc: Vivi, Rodrigo <rodrigo.vivi at intel.com>
Subject: [PATCH 03/12] drm/xe: Remove unnecessary drm_mm.h includes
> 
> These includes are no longer necessary, and where appropriate
> replace by the linux/types.h one.

s/replace/are replaced/
But otherwise:
Reviewed-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
-Jonathan Cavitt

> 
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
> ---
>  drivers/gpu/drm/xe/xe_migrate.h        | 2 +-
>  drivers/gpu/drm/xe/xe_res_cursor.h     | 1 -
>  drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c | 1 -
>  3 files changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_migrate.h b/drivers/gpu/drm/xe/xe_migrate.h
> index 453e0ecf5034..f2af9355c051 100644
> --- a/drivers/gpu/drm/xe/xe_migrate.h
> +++ b/drivers/gpu/drm/xe/xe_migrate.h
> @@ -6,7 +6,7 @@
>  #ifndef _XE_MIGRATE_
>  #define _XE_MIGRATE_
>  
> -#include <drm/drm_mm.h>
> +#include <linux/types.h>
>  
>  struct dma_fence;
>  struct iosys_map;
> diff --git a/drivers/gpu/drm/xe/xe_res_cursor.h b/drivers/gpu/drm/xe/xe_res_cursor.h
> index 655af89b31a9..dca374b6521c 100644
> --- a/drivers/gpu/drm/xe/xe_res_cursor.h
> +++ b/drivers/gpu/drm/xe/xe_res_cursor.h
> @@ -26,7 +26,6 @@
>  
>  #include <linux/scatterlist.h>
>  
> -#include <drm/drm_mm.h>
>  #include <drm/ttm/ttm_placement.h>
>  #include <drm/ttm/ttm_range_manager.h>
>  #include <drm/ttm/ttm_resource.h>
> diff --git a/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c b/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
> index f46fd2df84de..f7113cf6109d 100644
> --- a/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
> +++ b/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
> @@ -5,7 +5,6 @@
>   */
>  
>  #include <drm/drm_managed.h>
> -#include <drm/drm_mm.h>
>  
>  #include <drm/ttm/ttm_device.h>
>  #include <drm/ttm/ttm_placement.h>
> -- 
> 2.45.2
> 
> 


More information about the Intel-xe mailing list