aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 9ce1079e8f89..3c99c2f23d8f 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1350,7 +1350,8 @@ EXPORT_SYMBOL_GPL(kvm_write_guest_cached);
1350 1350
1351int kvm_clear_guest_page(struct kvm *kvm, gfn_t gfn, int offset, int len) 1351int kvm_clear_guest_page(struct kvm *kvm, gfn_t gfn, int offset, int len)
1352{ 1352{
1353 return kvm_write_guest_page(kvm, gfn, empty_zero_page, offset, len); 1353 return kvm_write_guest_page(kvm, gfn, (const void *) empty_zero_page,
1354 offset, len);
1354} 1355}
1355EXPORT_SYMBOL_GPL(kvm_clear_guest_page); 1356EXPORT_SYMBOL_GPL(kvm_clear_guest_page);
1356 1357