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 32 of 45] gcc-4.6 compile fix: xen/arch/x86/hvm/emula

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 32 of 45] gcc-4.6 compile fix: xen/arch/x86/hvm/emulate.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:51 +0200
Delivery-date: Thu, 19 May 2011 12:36:06 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832243; l=1006; 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=3hCSb27WVKEivjgzQgt8Y/zd5V8=; b=YvDsOfKrvzQWWcjwRCbJ96gkPuZixxbKzmDyBY+bMYXTvc4N7atn1rOpHLJlKPZLpqK HKkm9+TZjcV5XI2csU4JAczuhgQa1fjNQb/hVPv0gsQCO0aKKOTXQwOuwFTQB0j5+kTyp zVkNqJEMkqZqS0WUP6fKsF5t/mS9mlxa2v4=
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 1305824418 -7200
# Node ID afab96a155bcd7c2874f00c83c5987123b3ded4f
# Parent  c3b532f1954b6c36e14f41481a2ba4fa5052f6ae
gcc-4.6 compile fix: xen/arch/x86/hvm/emulate.c

emulate.c: In function 'hvmemul_do_io':
emulate.c:62:11: error: variable 'ram_mfn' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r c3b532f1954b -r afab96a155bc xen/arch/x86/hvm/emulate.c
--- a/xen/arch/x86/hvm/emulate.c        Thu May 19 19:00:17 2011 +0200
+++ b/xen/arch/x86/hvm/emulate.c        Thu May 19 19:00:18 2011 +0200
@@ -59,11 +59,10 @@ static int hvmemul_do_io(
     ioreq_t *p = get_ioreq(curr);
     unsigned long ram_gfn = paddr_to_pfn(ram_gpa);
     p2m_type_t p2mt;
-    mfn_t ram_mfn;
     int rc;
 
     /* Check for paged out page */
-    ram_mfn = gfn_to_mfn_unshare(p2m, ram_gfn, &p2mt, 0);
+    gfn_to_mfn_unshare(p2m, ram_gfn, &p2mt, 0);
     if ( p2m_is_paging(p2mt) )
     {
         p2m_mem_paging_populate(p2m, ram_gfn);

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

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