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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 25 of 45] gcc-4.6 compile fix: xen/arch/x86/microcode_amd.c
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 19 May 2011 21:05:44 +0200
Delivery-date: Thu, 19 May 2011 12:30:37 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1305832180; l=1234; 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=TGLLTLyECVf/ldKJW+fgnL7vIp4=; b=socjMAWJAYs8kpSSDtFOwRYQNWNv8GIN9kuWu9O4MhWoQBrmYb+NbbIaP1uuARk87ch N9eXRUJVnjVEHBeBr7yV0cPcz6OnW1O9VZm41lQCbmYu3nMyHKsY1Uj6C8Y9z/ZJdJIEi 6d5ns1veblirc4ut5jAXruWM00suRPEpm0Q=
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 1305824410 -7200
# Node ID a7329b4e30a3c5db1ec52c9d331f13187927d3bb
# Parent  d657cd6182d517b8b5e0fffb0f34ea451f49c916
gcc-4.6 compile fix: xen/arch/x86/microcode_amd.c

microcode_amd.c: In function 'get_next_ucode_from_buffer_amd':
microcode_amd.c:167:34: error: variable 'mc_header' set but not used 
[-Werror=unused-but-set-variable]

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

diff -r d657cd6182d5 -r a7329b4e30a3 xen/arch/x86/microcode_amd.c
--- a/xen/arch/x86/microcode_amd.c      Thu May 19 19:00:09 2011 +0200
+++ b/xen/arch/x86/microcode_amd.c      Thu May 19 19:00:10 2011 +0200
@@ -164,7 +164,6 @@ static int apply_microcode(int cpu)
 static int get_next_ucode_from_buffer_amd(void *mc, const void *buf,
                                          size_t size, unsigned long *offset)
 {
-    struct microcode_header_amd *mc_header;
     size_t total_size;
     const uint8_t *bufp = buf;
     unsigned long off;
@@ -182,8 +181,6 @@ static int get_next_ucode_from_buffer_am
         return -EINVAL;
     }
 
-    mc_header = (struct microcode_header_amd *)(&bufp[off+8]);
-
     total_size = (unsigned long) (bufp[off+4] + (bufp[off+5] << 8));
 
     printk(KERN_INFO "microcode: size %lu, total_size %lu, offset %ld\n",

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

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