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-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 38 of 45] gcc-4.6 compile fix: xen/arch/x86/mm.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:57 +0200
Delivery-date: Thu, 19 May 2011 12:42:13 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832299; l=875; s=domk; d=aepfle.de; h=To:From:Date:References:In-Reply-To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:X-RZG-CLASS-ID: X-RZG-AUTH; bh=Ie+ojamEdQqHpS8aBiScFDq5Vsw=; b=ocastnfHUZoU4XFqxLzROLX/uK9HmeGGGcCgc9nzFMSiWtoktaX7eoo1osdAn48pGxf Rq6bWDP4T60/1j06fdlRR92za2FZ8bWxt2ChpXEs5mMpiquMLRcNUIwco7CL6keABiwKr +XTfTQ/49HftZnwkTqaUcum1m6hyK3zmiaM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1305831919@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1305831919@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.7.5
# 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

<Prev in Thread] Current Thread [Next in Thread>