Message ID | 20220427212849.18109-1-zhi.a.wang@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/2] drm/i915/gvt: Make intel_gvt_match_device() static | expand |
On Wed, 27 Apr 2022, Zhi Wang <zhi.wang.linux@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@nvidia.com> > Cc: Jani Nikula <jani.nikula@linux.intel.com> > Cc: Robert Beckett <bob.beckett@collabora.com> > Signed-off-by: Zhi Wang <zhi.a.wang@intel.com> Reviewed-by: Jani Nikula <jani.nikula@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;
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;
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@nvidia.com> Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: Robert Beckett <bob.beckett@collabora.com> Signed-off-by: Zhi Wang <zhi.a.wang@intel.com> --- drivers/gpu/drm/i915/gvt/handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)