]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/xenbus: client: Fix call of virt_to_mfn in xenbus_grant_ring
authorJulien Grall <julien.grall@citrix.com>
Wed, 17 Jun 2015 14:28:03 +0000 (15:28 +0100)
committerElena Ufimtseva <elena.ufimtseva@oracle.com>
Wed, 12 Aug 2015 10:05:59 +0000 (06:05 -0400)
commit8070ddd29e20498659475c71be189ff09f3607d2
tree0e71b388ec874744719f86b664b6d02c71c7019d
parentecbfb68873ef1f557b584456123bf3bc08a045e3
xen/xenbus: client: Fix call of virt_to_mfn in xenbus_grant_ring

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 don't use it later.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit c9fd55eb6625ead6a1207e7da38026ff47c5198b)
Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
drivers/xen/xenbus/xenbus_client.c