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/
Home Products Support Community News


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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 33 of 45] gcc-4.6 compile fix: xen/arch/x86/hvm/hvm.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:52 +0200
Delivery-date: Thu, 19 May 2011 12:36:49 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832253; l=1280; 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=+325MbWc6p47L7+xU2jIjLuEnIg=; b=rkZ9tB3L/pcj7pIevr/7EmICcCG/FFGGXPh3p+KqwGgSHftjleuGUpZvnkyeDa3kD4y XRLw2xz0LAverst4uj4pomoGqyQQyeIQWMYpvHSVYeSCD8t70w7pjBnTOmhLnXh/IiKFK OkC9NeZkd4HKpNP3ncrareyEgcr7c9dvl2o=
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 1305824420 -7200
# Node ID 15f2822f4efd2c432ad9fdbcf39c84b3d91379ae
# Parent  afab96a155bcd7c2874f00c83c5987123b3ded4f
gcc-4.6 compile fix: xen/arch/x86/hvm/hvm.c

hvm.c: In function 'hvm_migrate_pirqs':
hvm.c:258:15: error: variable 'irq' set but not used 

hvm.c: In function 'do_hvm_op':
hvm.c:3757:19: error: variable 'mfn' set but not used 

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

diff -r afab96a155bc -r 15f2822f4efd xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c    Thu May 19 19:00:18 2011 +0200
+++ b/xen/arch/x86/hvm/hvm.c    Thu May 19 19:00:20 2011 +0200
@@ -255,7 +255,7 @@ void hvm_migrate_timers(struct vcpu *v)
 void hvm_migrate_pirqs(struct vcpu *v)
-    int pirq, irq;
+    int pirq, irq __attribute__ ((unused));
     struct irq_desc *desc;
     struct domain *d = v->domain;
     struct hvm_irq_dpci *hvm_irq_dpci = d->arch.hvm_domain.irq.dpci;
@@ -3750,8 +3750,7 @@ long do_hvm_op(unsigned long op, XEN_GUE
             p2m_type_t t;
             p2m_type_t nt;
-            mfn_t mfn;
-            mfn = gfn_to_mfn_unshare(p2m, pfn, &t, 0);
+            gfn_to_mfn_unshare(p2m, pfn, &t, 0);
             if ( p2m_is_paging(t) )
                 p2m_mem_paging_populate(p2m, pfn);

Xen-devel mailing list

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