* [PATCH] kvm: add cast within kvm_clear_guest_page to fix warning
@ 2010-10-27 15:21 Heiko Carstens
2010-11-01 16:44 ` Marcelo Tosatti
0 siblings, 1 reply; 2+ messages in thread
From: Heiko Carstens @ 2010-10-27 15:21 UTC (permalink / raw)
To: Avi Kivity, Marcelo Tosatti; +Cc: kvm
From: Heiko Carstens <heiko.carstens@de.ibm.com>
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>
---
virt/kvm/kvm_main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1221,7 +1221,8 @@ int kvm_write_guest(struct kvm *kvm, gpa
int kvm_clear_guest_page(struct kvm *kvm, gfn_t gfn, int offset, int len)
{
- return kvm_write_guest_page(kvm, gfn, empty_zero_page, offset, len);
+ return kvm_write_guest_page(kvm, gfn, (const void *) empty_zero_page,
+ offset, len);
}
EXPORT_SYMBOL_GPL(kvm_clear_guest_page);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] kvm: add cast within kvm_clear_guest_page to fix warning
2010-10-27 15:21 [PATCH] kvm: add cast within kvm_clear_guest_page to fix warning Heiko Carstens
@ 2010-11-01 16:44 ` Marcelo Tosatti
0 siblings, 0 replies; 2+ messages in thread
From: Marcelo Tosatti @ 2010-11-01 16:44 UTC (permalink / raw)
To: Heiko Carstens; +Cc: Avi Kivity, kvm
On Wed, Oct 27, 2010 at 05:21:21PM +0200, Heiko Carstens wrote:
> From: Heiko Carstens <heiko.carstens@de.ibm.com>
>
> 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>
> ---
> virt/kvm/kvm_main.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Applied both, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-01 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-27 15:21 [PATCH] kvm: add cast within kvm_clear_guest_page to fix warning Heiko Carstens
2010-11-01 16:44 ` Marcelo Tosatti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox