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 43 of 45] gcc-4.6 compile fix: xen/arch/x86/mm/shadow

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 43 of 45] gcc-4.6 compile fix: xen/arch/x86/mm/shadow/multi.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:06:02 +0200
Delivery-date: Thu, 19 May 2011 12:46:28 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832344; l=1337; 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=k434Pl4DJtbQcK8x6gPYWZiGXJQ=; b=wUsjptnQjmrG9KnYM559C8SBAAkJvdmFk4ic65uOZOqSEdU2ZefVHUm13BF3krdaJ90 FbUyAMiIlR5PD+sf7TYlwKk0BipFAnHtCDgeUxQ3UrbvzTaAkCG2rfRmYwjk7Q9j2wDCr HK9+aRDNv8pFE2Pxm6mQsMRxRBHNFBbqsDM=
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 1305824432 -7200
# Node ID f64bb486b83ccefb1e1352db56f898b8272ad56d
# Parent  2e6175d0996618f80fd26106257d6cb8b61b046d
gcc-4.6 compile fix: xen/arch/x86/mm/shadow/multi.c

multi.c: In function 'set_shadow_status':
multi.c:127:9: error: variable 'res' set but not used 
[-Werror=unused-but-set-variable]
multi.c: In function 'sh_rm_write_access_from_sl1p__guest_2':
multi.c:4434:9: error: variable 'r' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r 2e6175d09966 -r f64bb486b83c xen/arch/x86/mm/shadow/multi.c
--- a/xen/arch/x86/mm/shadow/multi.c    Thu May 19 19:00:31 2011 +0200
+++ b/xen/arch/x86/mm/shadow/multi.c    Thu May 19 19:00:32 2011 +0200
@@ -124,7 +124,7 @@ set_shadow_status(struct vcpu *v, mfn_t 
 /* Put a shadow into the hash table */
 {
     struct domain *d = v->domain;
-    int res;
+    int res __attribute__((unused));
 
     SHADOW_PRINTK("d=%d, v=%d, gmfn=%05lx, type=%08x, smfn=%05lx\n",
                    d->domain_id, v->vcpu_id, mfn_x(gmfn),
@@ -4431,7 +4431,7 @@ sh_update_cr3(struct vcpu *v, int do_loc
 int sh_rm_write_access_from_sl1p(struct vcpu *v, mfn_t gmfn, 
                                  mfn_t smfn, unsigned long off)
 {
-    int r;
+    int r __attribute__((unused));
     shadow_l1e_t *sl1p, sl1e;
     struct page_info *sp;
 

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

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