Commit bbc36933 authored by Zhenyu Wang's avatar Zhenyu Wang

drm/i915/gvt: Fix warning on obsolete function usage

Don't use obsolete drm_gem_object_unreference() but switch to i915_gem_object_put().
Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
parent 66a46e9d
...@@ -499,7 +499,7 @@ static void release_shadow_batch_buffer(struct intel_vgpu_workload *workload) ...@@ -499,7 +499,7 @@ static void release_shadow_batch_buffer(struct intel_vgpu_workload *workload)
list_for_each_entry_safe(entry_obj, temp, &workload->shadow_bb, list_for_each_entry_safe(entry_obj, temp, &workload->shadow_bb,
list) { list) {
drm_gem_object_unreference(&(entry_obj->obj->base)); i915_gem_object_put(entry_obj->obj);
kvfree(entry_obj->va); kvfree(entry_obj->va);
list_del(&entry_obj->list); list_del(&entry_obj->list);
kfree(entry_obj); kfree(entry_obj);
...@@ -512,7 +512,7 @@ static void release_shadow_wa_ctx(struct intel_shadow_wa_ctx *wa_ctx) ...@@ -512,7 +512,7 @@ static void release_shadow_wa_ctx(struct intel_shadow_wa_ctx *wa_ctx)
if (wa_ctx->indirect_ctx.size == 0) if (wa_ctx->indirect_ctx.size == 0)
return; return;
drm_gem_object_unreference(&(wa_ctx->indirect_ctx.obj->base)); i915_gem_object_put(wa_ctx->indirect_ctx.obj);
kvfree(wa_ctx->indirect_ctx.shadow_va); kvfree(wa_ctx->indirect_ctx.shadow_va);
} }
......
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