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

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


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

# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824426 -7200
# Node ID ce00a34fc0a36f9c0d85e2ada2f458a6fc107641
# Parent  305d1c98f6f82bfec8efb7798520ff39371c1cdf
gcc-4.6 compile fix: xen/arch/x86/mm.c

mm.c: In function 'ptwr_emulated_update':
mm.c:4979:23: error: variable 'page' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r 305d1c98f6f8 -r ce00a34fc0a3 xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Thu May 19 19:00:25 2011 +0200
+++ b/xen/arch/x86/mm.c Thu May 19 19:00:26 2011 +0200
@@ -4976,7 +4976,7 @@ static int ptwr_emulated_update(
 {
     unsigned long mfn;
     unsigned long unaligned_addr = addr;
-    struct page_info *page;
+    struct page_info *page __attribute__((unused));
     l1_pgentry_t pte, ol1e, nl1e, *pl1e;
     struct vcpu *v = current;
     struct domain *d = v->domain;

_______________________________________________
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®.