mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
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>
This commit is contained in:
parent
e17b2f114c
commit
47c542050d
3 changed files with 7 additions and 7 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue