[PATCH 4/4] drm/xe: Fix xe_guc_pc.h

Francois Dugast francois.dugast at intel.com
Tue May 21 10:40:34 UTC 2024


On Tue, May 21, 2024 at 12:28:28PM +0200, Michal Wajdeczko wrote:
> Prefer forward declaration over #include xe_guc_pc_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_guc_pc.h | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_guc_pc.h b/drivers/gpu/drm/xe/xe_guc_pc.h
> index d3680d89490e..532cac985a6d 100644
> --- a/drivers/gpu/drm/xe/xe_guc_pc.h
> +++ b/drivers/gpu/drm/xe/xe_guc_pc.h
> @@ -6,7 +6,9 @@
>  #ifndef _XE_GUC_PC_H_
>  #define _XE_GUC_PC_H_
>  
> -#include "xe_guc_pc_types.h"
> +#include <linux/types.h>
> +
> +struct xe_guc_pc;
>  
>  int xe_guc_pc_init(struct xe_guc_pc *pc);
>  int xe_guc_pc_start(struct xe_guc_pc *pc);
> @@ -27,4 +29,5 @@ enum xe_gt_idle_state xe_guc_pc_c_status(struct xe_guc_pc *pc);
>  u64 xe_guc_pc_rc6_residency(struct xe_guc_pc *pc);
>  u64 xe_guc_pc_mc6_residency(struct xe_guc_pc *pc);
>  void xe_guc_pc_init_early(struct xe_guc_pc *pc);
> +
>  #endif /* _XE_GUC_PC_H_ */
> -- 
> 2.43.0
> 


More information about the Intel-xe mailing list