diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2010-10-27 11:21:21 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-01-12 04:28:49 -0500 |
commit | 3bcc8a8c6c13f601dddd948d33d89d5ac5213e3c (patch) | |
tree | edf4c5e4c3cd4edddc034d519f5c0de31732f502 /virt/kvm | |
parent | 6f9e5c1702319e048a90e06e31b957fbbcecbe07 (diff) |
KVM: add cast within kvm_clear_guest_page to fix warning
Fixes this:
CC arch/s390/kvm/../../../virt/kvm/kvm_main.o
arch/s390/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_clear_guest_page':
arch/s390/kvm/../../../virt/kvm/kvm_main.c:1224:2: warning: passing argument 3 of 'kvm_write_guest_page' makes pointer from integer without a cast
arch/s390/kvm/../../../virt/kvm/kvm_main.c:1185:5: note: expected 'const void *' but argument is of type 'long unsigned int'
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/kvm_main.c | 3 |
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 | ||
1351 | int kvm_clear_guest_page(struct kvm *kvm, gfn_t gfn, int offset, int len) | 1351 | int 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 | } |
1355 | EXPORT_SYMBOL_GPL(kvm_clear_guest_page); | 1356 | EXPORT_SYMBOL_GPL(kvm_clear_guest_page); |
1356 | 1357 | ||