|
@@ -1921,7 +1921,7 @@ int intel_vgpu_emulate_gtt_mmio_write(struct intel_vgpu *vgpu, unsigned int off,
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-bool intel_gvt_create_scratch_page(struct intel_vgpu *vgpu)
|
|
|
+static bool create_scratch_page(struct intel_vgpu *vgpu)
|
|
|
{
|
|
|
struct intel_vgpu_gtt *gtt = &vgpu->gtt;
|
|
|
void *p;
|
|
@@ -1955,7 +1955,7 @@ bool intel_gvt_create_scratch_page(struct intel_vgpu *vgpu)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-void intel_gvt_release_scratch_page(struct intel_vgpu *vgpu)
|
|
|
+static void release_scratch_page(struct intel_vgpu *vgpu)
|
|
|
{
|
|
|
if (vgpu->gtt.scratch_page != NULL) {
|
|
|
__free_page(vgpu->gtt.scratch_page);
|
|
@@ -1995,7 +1995,7 @@ int intel_vgpu_init_gtt(struct intel_vgpu *vgpu)
|
|
|
|
|
|
gtt->ggtt_mm = ggtt_mm;
|
|
|
|
|
|
- intel_gvt_create_scratch_page(vgpu);
|
|
|
+ create_scratch_page(vgpu);
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -2015,7 +2015,7 @@ void intel_vgpu_clean_gtt(struct intel_vgpu *vgpu)
|
|
|
struct intel_vgpu_mm *mm;
|
|
|
|
|
|
ppgtt_free_all_shadow_page(vgpu);
|
|
|
- intel_gvt_release_scratch_page(vgpu);
|
|
|
+ release_scratch_page(vgpu);
|
|
|
|
|
|
list_for_each_safe(pos, n, &vgpu->gtt.mm_list_head) {
|
|
|
mm = container_of(pos, struct intel_vgpu_mm, list);
|