Skip to content

Commit c1a81f3

Browse files
mmhalbonzini
authored andcommitted
KVM: x86: Remove unused argument in gpc_unmap_khva()
Remove the unused @kvm argument from gpc_unmap_khva(). Signed-off-by: Michal Luczaj <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Signed-off-by: David Woodhouse <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent aba3cae commit c1a81f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

virt/kvm/pfncache.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ bool kvm_gpc_check(struct kvm *kvm, struct gfn_to_pfn_cache *gpc, gpa_t gpa,
9898
}
9999
EXPORT_SYMBOL_GPL(kvm_gpc_check);
100100

101-
static void gpc_unmap_khva(struct kvm *kvm, kvm_pfn_t pfn, void *khva)
101+
static void gpc_unmap_khva(kvm_pfn_t pfn, void *khva)
102102
{
103103
/* Unmap the old pfn/page if it was mapped before. */
104104
if (!is_error_noslot_pfn(pfn) && khva) {
@@ -177,7 +177,7 @@ static kvm_pfn_t hva_to_pfn_retry(struct kvm *kvm, struct gfn_to_pfn_cache *gpc)
177177
* the existing mapping and didn't create a new one.
178178
*/
179179
if (new_khva != old_khva)
180-
gpc_unmap_khva(kvm, new_pfn, new_khva);
180+
gpc_unmap_khva(new_pfn, new_khva);
181181

182182
kvm_release_pfn_clean(new_pfn);
183183

@@ -329,7 +329,7 @@ int kvm_gpc_refresh(struct kvm *kvm, struct gfn_to_pfn_cache *gpc, gpa_t gpa,
329329
mutex_unlock(&gpc->refresh_lock);
330330

331331
if (unmap_old)
332-
gpc_unmap_khva(kvm, old_pfn, old_khva);
332+
gpc_unmap_khva(old_pfn, old_khva);
333333

334334
return ret;
335335
}
@@ -358,7 +358,7 @@ void kvm_gpc_unmap(struct kvm *kvm, struct gfn_to_pfn_cache *gpc)
358358
write_unlock_irq(&gpc->lock);
359359
mutex_unlock(&gpc->refresh_lock);
360360

361-
gpc_unmap_khva(kvm, old_pfn, old_khva);
361+
gpc_unmap_khva(old_pfn, old_khva);
362362
}
363363
EXPORT_SYMBOL_GPL(kvm_gpc_unmap);
364364

0 commit comments

Comments
 (0)