summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJulien Grall <julien.grall@linaro.org>2014-01-30 16:56:34 +0400
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2014-01-30 16:56:34 +0400
commit47c542050d306e50f09512eb6339dbf2fc02fddd (patch)
tree581ba02825b2cc2bdd36569d50ebfcaa3b83f4e8 /include
parente17b2f114cba5420fb28fa4bfead57d406a16533 (diff)
downloadlinux-47c542050d306e50f09512eb6339dbf2fc02fddd.tar.xz
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>
Diffstat (limited to 'include')
-rw-r--r--include/xen/grant_table.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/xen/grant_table.h b/include/xen/grant_table.h
index 5acb1e4ac0d3..a5af2a26d94f 100644
--- a/include/xen/grant_table.h
+++ b/include/xen/grant_table.h
@@ -185,7 +185,7 @@ struct grant_frames {
};
extern struct grant_frames xen_auto_xlat_grant_frames;
unsigned int gnttab_max_grant_frames(void);
-int gnttab_setup_auto_xlat_frames(unsigned long addr);
+int gnttab_setup_auto_xlat_frames(phys_addr_t addr);
void gnttab_free_auto_xlat_frames(void);
#define gnttab_map_vaddr(map) ((void *)(map.host_virt_addr))