[PATCH] drm/xe/pf: Remove unused xe var in pf_get_threshold

Imre Deak imre.deak at intel.com
Fri Jun 28 11:18:10 UTC 2024


On Fri, Jun 28, 2024 at 10:54:57AM +0200, Nirmoy Das wrote:
> Remove unused xe var which probably came for resolving a merge
> conflict, commit 2817ef9704e7 ("Merge remote-tracking branch
> 'drm/drm-next' into drm-tip")
> 
> Cc: Neil Armstrong <neil.armstrong at linaro.org>
> Cc: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>
> ---
>  drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> index a5c9dfa1077c..694671497f6e 100644
> --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> @@ -1785,7 +1785,6 @@ static int pf_get_threshold(struct xe_gt *gt, unsigned int vfid,
>  			    enum xe_guc_klv_threshold_index index)
>  {
>  	struct xe_gt_sriov_config *config = pf_pick_vf_config(gt, vfid);
> -	struct xe_device *xe = gt_to_xe(gt);

I noticed the same issue after pushing a patch to drm-tip, afaiu the
correct way to apply these kinds of fixups is

$ cat patch | dim cat-to-fixup
$ dim rebuild-tip

as described in
https://drm.pages.freedesktop.org/maintainer-tools/drm-tip.html

I did this now for the above fixup.

>  
>  	return config->thresholds[index];
>  }
> -- 
> 2.42.0
> 


More information about the Intel-xe mailing list