[PATCH 1/4] drm/xe: Fix xe_uc.h

Francois Dugast francois.dugast at intel.com
Tue May 21 10:38:55 UTC 2024


On Tue, May 21, 2024 at 12:28:25PM +0200, Michal Wajdeczko wrote:
> Prefer forward declaration over #include xe_uc_types.h
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>

Reviewed-by: Francois Dugast <francois.dugast at intel.com>

> ---
>  drivers/gpu/drm/xe/xe_uc.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_uc.h b/drivers/gpu/drm/xe/xe_uc.h
> index 5dfa7725483d..11856f24e6f9 100644
> --- a/drivers/gpu/drm/xe/xe_uc.h
> +++ b/drivers/gpu/drm/xe/xe_uc.h
> @@ -6,7 +6,7 @@
>  #ifndef _XE_UC_H_
>  #define _XE_UC_H_
>  
> -#include "xe_uc_types.h"
> +struct xe_uc;
>  
>  int xe_uc_init(struct xe_uc *uc);
>  int xe_uc_init_hwconfig(struct xe_uc *uc);
> -- 
> 2.43.0
> 


More information about the Intel-xe mailing list