# 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
[-Werror=unused-but-set-variable]
hvm.c: In function 'do_hvm_op':
hvm.c:3757:19: error: variable 'mfn' set but not used
[-Werror=unused-but-set-variable]
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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|