On Wed, 27 Apr 2022, Zhi Wang <zhi.wang.linux@xxxxxxxxx> 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@xxxxxxxxxx> > Cc: Jani Nikula <jani.nikula@xxxxxxxxxxxxxxx> > Cc: Robert Beckett <bob.beckett@xxxxxxxxxxxxx> > Signed-off-by: Zhi Wang <zhi.a.wang@xxxxxxxxx> Reviewed-by: Jani Nikula <jani.nikula@xxxxxxxxx> > --- > 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