[PATCH] drm/xe: Fix xe_mocs.h

Matt Roper matthew.d.roper at intel.com
Mon May 6 22:51:03 UTC 2024


On Mon, May 06, 2024 at 10:52:54PM +0200, Michal Wajdeczko wrote:
> We don't need to include <linux/types.h>.
> We don't use struct xe_exec_queue here.
> We should sort forward declarations.
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>

Reviewed-by: Matt Roper <matthew.d.roper at intel.com>

> ---
>  drivers/gpu/drm/xe/xe_mocs.h | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_mocs.h b/drivers/gpu/drm/xe/xe_mocs.h
> index d6fa4485a6e9..dc972ffd4d07 100644
> --- a/drivers/gpu/drm/xe/xe_mocs.h
> +++ b/drivers/gpu/drm/xe/xe_mocs.h
> @@ -6,11 +6,8 @@
>  #ifndef _XE_MOCS_H_
>  #define _XE_MOCS_H_
>  
> -#include <linux/types.h>
> -
> -struct xe_exec_queue;
> -struct xe_gt;
>  struct drm_printer;
> +struct xe_gt;
>  
>  void xe_mocs_init_early(struct xe_gt *gt);
>  void xe_mocs_init(struct xe_gt *gt);
> -- 
> 2.43.0
> 

-- 
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation


More information about the Intel-xe mailing list