WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-arm

[XenARM] [PATCH] Fix the page.h file for arm to avoid various warning at

To: jm77.ryu@xxxxxxxxxxx
Subject: [XenARM] [PATCH] Fix the page.h file for arm to avoid various warning at build time
From: "Jean-Christophe DUBOIS" <jcd@xxxxxxxxxxxxxxx>
Date: Thu, 8 Sep 2011 22:12:47 +0200
Cc: xen-arm@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 08 Sep 2011 13:12:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-arm-request@lists.xensource.com?subject=help>
List-id: Xen ARM development <xen-arm.lists.xensource.com>
List-post: <mailto:xen-arm@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-arm>, <mailto:xen-arm-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-arm>, <mailto:xen-arm-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-arm-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.6.2; x86_64; ; )
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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenARM] [PATCH] Fix the page.h file for arm to avoid various warning at build time, Jean-Christophe DUBOIS <=