[Intel-gfx] [PATCH 1/2] drm/i915/gvt: Make intel_gvt_match_device() static

Jani Nikula jani.nikula at linux.intel.com
Thu Apr 28 08:28:15 UTC 2022


On Wed, 27 Apr 2022, Zhi Wang <zhi.wang.linux at gmail.com> wrote:
> After the refactor of GVT-g, the reference of intel_gvt_match_device()
> only happens in handlers.c. Make it static to let the compiler be
> happy.
>
> Cc: Jason Gunthorpe <jgg at nvidia.com>
> Cc: Jani Nikula <jani.nikula at linux.intel.com>
> Cc: Robert Beckett <bob.beckett at collabora.com>
> Signed-off-by: Zhi Wang <zhi.a.wang at intel.com>

Reviewed-by: Jani Nikula <jani.nikula at intel.com>

> ---
>  drivers/gpu/drm/i915/gvt/handlers.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/gvt/handlers.c b/drivers/gpu/drm/i915/gvt/handlers.c
> index cf00398c2870..a93f8fd423c2 100644
> --- a/drivers/gpu/drm/i915/gvt/handlers.c
> +++ b/drivers/gpu/drm/i915/gvt/handlers.c
> @@ -72,7 +72,7 @@ unsigned long intel_gvt_get_device_type(struct intel_gvt *gvt)
>  	return 0;
>  }
>  
> -bool intel_gvt_match_device(struct intel_gvt *gvt,
> +static bool intel_gvt_match_device(struct intel_gvt *gvt,
>  		unsigned long device)
>  {
>  	return intel_gvt_get_device_type(gvt) & device;

-- 
Jani Nikula, Intel Open Source Graphics Center


More information about the Intel-gfx mailing list