Commit fa630c30 authored by Zhi Wang's avatar Zhi Wang

drm/i915/gvt: Make intel_gvt_match_device() static

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.

Fixes: e0f74ed4 ("i915/gvt: Separate the MMIO tracking table from GVT-g")
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Robert Beckett <bob.beckett@collabora.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: default avatarZhi Wang <zhi.a.wang@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20220427212849.18109-1-zhi.a.wang@intel.comReviewed-by: default avatarCc: Jani Nikula <jani.nikula@linux.intel.com>
parent 5e9ae5c4
...@@ -71,7 +71,7 @@ unsigned long intel_gvt_get_device_type(struct intel_gvt *gvt) ...@@ -71,7 +71,7 @@ unsigned long intel_gvt_get_device_type(struct intel_gvt *gvt)
return 0; return 0;
} }
bool intel_gvt_match_device(struct intel_gvt *gvt, static bool intel_gvt_match_device(struct intel_gvt *gvt,
unsigned long device) unsigned long device)
{ {
return intel_gvt_get_device_type(gvt) & device; return intel_gvt_get_device_type(gvt) & device;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment