[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XenARM] [PATCH] Fix the page.h file for arm to avoid various warning at build time
maddr_to_virt() need to return a (void *) pointer. Fix it. Signed-off-by: Jean-Christophe DUBOIS <jcd@xxxxxxxxxxxxxxx> --- xen/include/asm-arm/page.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/include/asm-arm/page.h b/xen/include/asm-arm/page.h index 8aa426d..fd55908 100644 --- a/xen/include/asm-arm/page.h +++ b/xen/include/asm-arm/page.h @@ -47,8 +47,8 @@ static inline int get_order_from_pages(unsigned long nr_pages) /* Convert between Xen-heap virtual addresses and machine addresses. */ #define PAGE_OFFSET (0xFF000000) -#define _virt_to_maddr(addr) ((unsigned long)(addr) - PAGE_OFFSET + xen_phys_start) -#define _maddr_to_virt(addr) ((unsigned long)(addr) + PAGE_OFFSET - xen_phys_start) +#define _virt_to_maddr(addr) ((unsigned long)(addr - PAGE_OFFSET + xen_phys_start)) +#define _maddr_to_virt(addr) ((void *)(addr + PAGE_OFFSET - xen_phys_start)) #define virt_to_maddr(addr) _virt_to_maddr((unsigned long)(addr)) #define maddr_to_virt(addr) _maddr_to_virt((unsigned long)(addr)) -- 1.7.4.1 _______________________________________________ Xen-arm mailing list Xen-arm@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/mailman/listinfo/xen-arm
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |