[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 36 of 45] gcc-4.6 compile fix: xen/arch/x86/mm/mem_sharing.c


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Thu, 19 May 2011 21:05:55 +0200
  • Delivery-date: Thu, 19 May 2011 12:40:30 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824424 -7200
# Node ID 535fce9f4de3e0ecf630b2707d28c8c8bfbc0b67
# Parent  ac80525a292af94a2294dad07d5927167a49f44e
gcc-4.6 compile fix: xen/arch/x86/mm/mem_sharing.c

mem_sharing.c: In function 'mem_sharing_debug_gfn':
mem_sharing.c:379:23: error: variable 'page' set but not used 
[-Werror=unused-but-set-variable]

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

diff -r ac80525a292a -r 535fce9f4de3 xen/arch/x86/mm/mem_sharing.c
--- a/xen/arch/x86/mm/mem_sharing.c     Thu May 19 19:00:22 2011 +0200
+++ b/xen/arch/x86/mm/mem_sharing.c     Thu May 19 19:00:24 2011 +0200
@@ -376,10 +376,8 @@ int mem_sharing_debug_gfn(struct domain 
 {
     p2m_type_t p2mt;
     mfn_t mfn;
-    struct page_info *page;
 
     mfn = gfn_to_mfn(p2m_get_hostp2m(d), gfn, &p2mt);
-    page = mfn_to_page(mfn);
 
     printk("Debug for domain=%d, gfn=%lx, ", 
             d->domain_id, 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.