Re: [Xen-devel] [RFC 02/23] xen/xenbus: client: Fix call of virt_to_mfn in xenbus_grant_ring

2015-05-19 Thread Julien Grall
Hi David, On 19/05/15 14:51, David Vrabel wrote: >> --- a/drivers/xen/xenbus/xenbus_client.c >> +++ b/drivers/xen/xenbus/xenbus_client.c >> @@ -379,16 +379,16 @@ int xenbus_grant_ring(struct xenbus_device *dev, void >> *vaddr, >> int i, j; >> >> for (i = 0; i < nr_pages; i++) { >> -

Re: [Xen-devel] [RFC 02/23] xen/xenbus: client: Fix call of virt_to_mfn in xenbus_grant_ring

2015-05-19 Thread David Vrabel
On 14/05/15 18:00, Julien Grall wrote: > virt_to_mfn should take a void* rather an unsigned long. While it > doesn't really matter now, it would throw a compiler warning later when > virt_to_mfn will enforce the type. > > At the same time, avoid to compute new virtual address every time in the >

Re: [Xen-devel] [RFC 02/23] xen/xenbus: client: Fix call of virt_to_mfn in xenbus_grant_ring

2015-05-19 Thread Julien Grall
Hi David, On 19/05/15 14:51, David Vrabel wrote: --- a/drivers/xen/xenbus/xenbus_client.c +++ b/drivers/xen/xenbus/xenbus_client.c @@ -379,16 +379,16 @@ int xenbus_grant_ring(struct xenbus_device *dev, void *vaddr, int i, j; for (i = 0; i nr_pages; i++) { -

Re: [Xen-devel] [RFC 02/23] xen/xenbus: client: Fix call of virt_to_mfn in xenbus_grant_ring

2015-05-19 Thread David Vrabel
On 14/05/15 18:00, Julien Grall wrote: virt_to_mfn should take a void* rather an unsigned long. While it doesn't really matter now, it would throw a compiler warning later when virt_to_mfn will enforce the type. At the same time, avoid to compute new virtual address every time in the loop

[RFC 02/23] xen/xenbus: client: Fix call of virt_to_mfn in xenbus_grant_ring

2015-05-14 Thread Julien Grall
virt_to_mfn should take a void* rather an unsigned long. While it doesn't really matter now, it would throw a compiler warning later when virt_to_mfn will enforce the type. At the same time, avoid to compute new virtual address every time in the loop and directly increment the parameter as we

[RFC 02/23] xen/xenbus: client: Fix call of virt_to_mfn in xenbus_grant_ring

2015-05-14 Thread Julien Grall
virt_to_mfn should take a void* rather an unsigned long. While it doesn't really matter now, it would throw a compiler warning later when virt_to_mfn will enforce the type. At the same time, avoid to compute new virtual address every time in the loop and directly increment the parameter as we