Commit 0a8cad54 authored by Jani Nikula's avatar Jani Nikula Committed by Zhenyu Wang

drm/i915/gvt: avoid useless use of inline

In most cases, we are better off letting the compiler decide whether to
inline static functions in .c files or not. In this case, the inline
will be ignored anyway as mmio_pm_restore_handler() is passed as a
function pointer.

Fixes: 5f60b12e ("drm/i915/gvt: Save/restore HW status to support GVT suspend/resume")
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Hang Yuan <hang.yuan@linux.intel.com>
Cc: Colin Xu <colin.xu@intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Cc: intel-gvt-dev@lists.freedesktop.org
Reviewed-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20201130111353.25406-1-jani.nikula@intel.com
parent 9a3a238b
...@@ -3645,8 +3645,7 @@ void intel_gvt_restore_fence(struct intel_gvt *gvt) ...@@ -3645,8 +3645,7 @@ void intel_gvt_restore_fence(struct intel_gvt *gvt)
} }
} }
static inline int mmio_pm_restore_handler(struct intel_gvt *gvt, static int mmio_pm_restore_handler(struct intel_gvt *gvt, u32 offset, void *data)
u32 offset, void *data)
{ {
struct intel_vgpu *vgpu = data; struct intel_vgpu *vgpu = data;
struct drm_i915_private *dev_priv = gvt->gt->i915; struct drm_i915_private *dev_priv = gvt->gt->i915;
......
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