]> git.baikalelectronics.ru Git - kernel.git/commit
xen/gnttab: Use phys_addr_t to describe the grant frame base address
authorJulien Grall <julien.grall@linaro.org>
Thu, 30 Jan 2014 12:56:34 +0000 (12:56 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 30 Jan 2014 12:56:34 +0000 (12:56 +0000)
commit7914f76e10200fb55691c848316ca4f5efa564f8
tree581ba02825b2cc2bdd36569d50ebfcaa3b83f4e8
parent0b796b2256a17bcfee94b0153d2f682ee1490006
xen/gnttab: Use phys_addr_t to describe the grant frame base address

On ARM, address size can be 32 bits or 64 bits (if CONFIG_ARCH_PHYS_ADDR_T_64BIT
is enabled).
We can't assume that the grant frame base address will always fits in an
unsigned long. Use phys_addr_t instead of unsigned long as argument for
gnttab_setup_auto_xlat_frames.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
arch/arm/xen/enlighten.c
drivers/xen/grant-table.c
include/xen/grant_table.h