drm/i915/gvt: Make intel_gvt_match_device() static
Zhi Wang
reviewerPATCH 1/2 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.
--- drivers/gpu/drm/i915/gvt/handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/gvt/handlers.c +1 -1
@@ -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;
Signature · 1 line
2.17.1
Zhi Wang
reviewerPATCH 2/2 drm/i915/gvt: Fix the compiling error when CONFIG_DRM_I915_DEBUG_RUNTIME_PM=n
A compiling error was reported when CONFIG_DRM_I915_DEBUG_RUNTIME_PM=n. Fix the problem by using the pre-defined macro.
--- drivers/gpu/drm/i915/intel_gvt.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/i915/intel_gvt.c +2 -0
@@ -309,7 +309,9 @@ EXPORT_SYMBOL_NS_GPL(__intel_context_do_pin, I915_GVT);EXPORT_SYMBOL_NS_GPL (__intel_context_do_unpin,I915_GVT );EXPORT_SYMBOL_NS_GPL (intel_ring_begin,I915_GVT );EXPORT_SYMBOL_NS_GPL (intel_runtime_pm_get,I915_GVT ); +#if IS_ENABLED (CONFIG_DRM_I915_DEBUG_RUNTIME_PM )EXPORT_SYMBOL_NS_GPL (intel_runtime_pm_put,I915_GVT ); +#endif EXPORT_SYMBOL_NS_GPL (intel_runtime_pm_put_unchecked,I915_GVT );EXPORT_SYMBOL_NS_GPL (intel_uncore_forcewake_for_reg,I915_GVT );EXPORT_SYMBOL_NS_GPL (intel_uncore_forcewake_get,I915_GVT );
Signature · 1 line
2.17.1
Re: [Intel-gfx] [PATCH 2/2] drm/i915/gvt: Fix the compiling error when CONFIG_DRM_I915_DEBUG_RUNTIME_PM=n
Quoted 6 lines · Zhi Wang
A compiling error was reported when
CONFIG_DRM_I915_DEBUG_RUNTIME_PM=n. Fix the problem by using the pre-defined macro.Cc Jason Gunthorpe <[email protected]>Cc Jani Nikula <[email protected]>Signed-off-by Zhi Wang <[email protected]>
We'll get this right, for now, but I do wonder if breaking these is going to be a perpetual thing. :(
Quoted 18 lines
--- drivers/gpu/drm/i915/intel_gvt.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/i915/intel_gvt.c +2
-0@@ -309,7 +309,9 @@ EXPORT_SYMBOL_NS_GPL(__intel_context_do_pin, I915_GVT);EXPORT_SYMBOL_NS_GPL (__intel_context_do_unpin,I915_GVT );EXPORT_SYMBOL_NS_GPL (intel_ring_begin,I915_GVT );EXPORT_SYMBOL_NS_GPL (intel_runtime_pm_get,I915_GVT ); +#if IS_ENABLED (CONFIG_DRM_I915_DEBUG_RUNTIME_PM )EXPORT_SYMBOL_NS_GPL (intel_runtime_pm_put,I915_GVT ); +#endif EXPORT_SYMBOL_NS_GPL (intel_runtime_pm_put_unchecked,I915_GVT );EXPORT_SYMBOL_NS_GPL (intel_uncore_forcewake_for_reg,I915_GVT );EXPORT_SYMBOL_NS_GPL (intel_uncore_forcewake_get,I915_GVT );
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for series starting with [1/2] drm/i915/gvt: Make intel_gvt_match_device() static
In reply to Zhi Wang== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915/gvt: Make intel_gvt_match_device() static
URL : https://patchwork.freedesktop.org/series/103237/
State : failure
== Summary ==
Error: patch https://patchwork.freedesktop.org/api/1.0/series/103237/revisions/1/mbox/ not applied
Applying: drm/i915/gvt: Make intel_gvt_match_device() static
Applying: drm/i915/gvt: Fix the compiling error when CONFIG_DRM_I915_DEBUG_RUNTIME_PM=n Using index info to reconstruct a base tree...
M drivers/gpu/drm/i915/intel_gvt.c
Falling back to patching base and 3-way merge...
Auto-merging drivers/gpu/drm/i915/intel_gvt.c
CONFLICT (content): Merge conflict in drivers/gpu/drm/i915/intel_gvt.c
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0002 drm/i915/gvt: Fix the compiling error when CONFIG_DRM_I915_DEBUG_RUNTIME_PM=n When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Quoted 8 lines · Zhi Wang
After the refactor of GVT-g, the reference of
intel_gvt_match_device()only happens inhandlers.c. Make it static to let the compiler be happy.Cc Jason Gunthorpe <[email protected]>Cc Jani Nikula <[email protected]>Cc Robert Beckett <[email protected]>Signed-off-by Zhi Wang <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/i915/gvt/handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/gvt/handlers.c +1
-1@@ -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;
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center