|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 25 of 45] gcc-4.6 compile fix: xen/arch/x86/microcode
# 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>
|
- [Xen-devel] [PATCH 16 of 45] gcc-4.6 compile fix: tools/python/xen/lowlevel/checkpoint/libcheckpoint.c, (continued)
- [Xen-devel] [PATCH 16 of 45] gcc-4.6 compile fix: tools/python/xen/lowlevel/checkpoint/libcheckpoint.c, Olaf Hering
- [Xen-devel] [PATCH 17 of 45] gcc-4.6 compile fix: tools/python/xen/lowlevel/netlink/libnetlink.c, Olaf Hering
- [Xen-devel] [PATCH 18 of 45] gcc-4.6 compile fix: xen/common/cpupool.c, Olaf Hering
- [Xen-devel] [PATCH 19 of 45] gcc-4.6 compile fix: xen/common/grant_table.c, Olaf Hering
- [Xen-devel] [PATCH 20 of 45] gcc-4.6 compile fix: xen/common/kexec.c, Olaf Hering
- [Xen-devel] [PATCH 21 of 45] gcc-4.6 compile fix: xen/common/sched_credit2.c, Olaf Hering
- [Xen-devel] [PATCH 22 of 45] gcc-4.6 compile fix: xen/common/unlzo.c, Olaf Hering
- [Xen-devel] [PATCH 23 of 45] gcc-4.6 compile fix: xen/drivers/passthrough/vtd/intremap.c, Olaf Hering
- [Xen-devel] [PATCH 24 of 45] gcc-4.6 compile fix: xen/arch/x86/msi.c, Olaf Hering
- [Xen-devel] [PATCH 25 of 45] gcc-4.6 compile fix: xen/arch/x86/microcode_amd.c,
Olaf Hering <=
- [Xen-devel] [PATCH 26 of 45] gcc-4.6 compile fix: xen/arch/x86/time.c, Olaf Hering
- [Xen-devel] [PATCH 27 of 45] gcc-4.6 compile fix: xen/arch/x86/acpi/cpu_idle.c, Olaf Hering
- [Xen-devel] [PATCH 28 of 45] gcc-4.6 compile fix: xen/arch/x86/cpu/amd.c, Olaf Hering
- [Xen-devel] [PATCH 29 of 45] gcc-4.6 compile fix: xen/arch/x86/cpu/intel.c, Olaf Hering
- [Xen-devel] [PATCH 30 of 45] gcc-4.6 compile fix: xen/arch/x86/cpu/intel_cacheinfo.c, Olaf Hering
- [Xen-devel] [PATCH 32 of 45] gcc-4.6 compile fix: xen/arch/x86/hvm/emulate.c, Olaf Hering
- [Xen-devel] [PATCH 33 of 45] gcc-4.6 compile fix: xen/arch/x86/hvm/hvm.c, Olaf Hering
|
|
|
|
|