[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210414083221.GN1551@zhen-hp.sh.intel.com>
Date: Wed, 14 Apr 2021 16:32:21 +0800
From: Zhenyu Wang <zhenyuw@...ux.intel.com>
To: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Cc: airlied@...ux.ie, intel-gfx@...ts.freedesktop.org,
joonas.lahtinen@...ux.intel.com, linux-kernel@...r.kernel.org,
jani.nikula@...ux.intel.com, dri-devel@...ts.freedesktop.org,
daniel@...ll.ch, rodrigo.vivi@...el.com,
intel-gvt-dev@...ts.freedesktop.org, zhi.a.wang@...el.com
Subject: Re: [PATCH] drm/i915/gvt: remove useless function
On 2021.04.13 14:18:48 +0800, Jiapeng Chong wrote:
> Fix the following clang warning:
>
> drivers/gpu/drm/i915/gvt/gtt.c:590:20: warning: unused function
> 'ppgtt_set_guest_root_entry' [-Wunused-function].
>
> Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
> ---
> drivers/gpu/drm/i915/gvt/gtt.c | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gvt/gtt.c b/drivers/gpu/drm/i915/gvt/gtt.c
> index 897c007..a01ff44 100644
> --- a/drivers/gpu/drm/i915/gvt/gtt.c
> +++ b/drivers/gpu/drm/i915/gvt/gtt.c
> @@ -587,12 +587,6 @@ static void _ppgtt_set_root_entry(struct intel_vgpu_mm *mm,
> entry, index, false, 0, mm->vgpu);
> }
>
> -static inline void ppgtt_set_guest_root_entry(struct intel_vgpu_mm *mm,
> - struct intel_gvt_gtt_entry *entry, unsigned long index)
> -{
> - _ppgtt_set_root_entry(mm, entry, index, true);
> -}
> -
> static inline void ppgtt_set_shadow_root_entry(struct intel_vgpu_mm *mm,
> struct intel_gvt_gtt_entry *entry, unsigned long index)
> {
> --
Reviewed-by: Zhenyu Wang <zhenyuw@...ux.intel.com>
Thanks for covering me on this! Queue this up.
Download attachment "signature.asc" of type "application/pgp-signature" (196 bytes)
Powered by blists - more mailing lists