[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Thu, 19 May 2011 21:05:44 +0200
  • Delivery-date: Thu, 19 May 2011 12:30:37 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.