[Intel-xe] [PATCH] fixup! drm/xe/pat: Move PAT setup to a dedicated file

Matt Roper matthew.d.roper at intel.com
Mon Apr 3 19:13:44 UTC 2023


On Sat, Apr 01, 2023 at 01:42:14AM -0700, Lucas De Marchi wrote:
> drm/xe/pat: Add missing include
> 
> Fix build error with W=1:
> 
> 	../drivers/gpu/drm/xe/xe_pat.c:73:6: error: no previous prototype for ‘xe_pat_init’ [-Werror=missing-prototypes]
> 	   73 | void xe_pat_init(struct xe_gt *gt)
> 	      |      ^~~~~~~~~~~
> 
> Add xe_pat.h includes like commonly done.
> 
> Fixes: d2ceb4f09a00 ("drm/xe/pat: Move PAT setup to a dedicated file")
> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>

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

> ---
>  drivers/gpu/drm/xe/xe_pat.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/xe_pat.c b/drivers/gpu/drm/xe/xe_pat.c
> index 266cf6f43a3c..293e4ff16107 100644
> --- a/drivers/gpu/drm/xe/xe_pat.c
> +++ b/drivers/gpu/drm/xe/xe_pat.c
> @@ -3,6 +3,8 @@
>   * Copyright © 2023 Intel Corporation
>   */
>  
> +#include "xe_pat.h"
> +
>  #include "regs/xe_reg_defs.h"
>  #include "xe_gt.h"
>  #include "xe_gt_mcr.h"
> -- 
> 2.39.0
> 

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


More information about the Intel-xe mailing list