projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d560bc6
)
x86, xen: Initialize cx to suppress warning
author
H. Peter Anvin
<hpa@zytor.com>
Wed, 26 Aug 2009 04:06:03 +0000
(21:06 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Wed, 26 Aug 2009 04:10:32 +0000
(21:10 -0700)
Initialize cx before calling xen_cpuid(), in order to suppress the
"may be used uninitialized in this function" warning.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
arch/x86/xen/enlighten.c
patch
|
blob
|
history
diff --git
a/arch/x86/xen/enlighten.c
b/arch/x86/xen/enlighten.c
index
0b755cd
..
eb33aaa
100644
(file)
--- a/
arch/x86/xen/enlighten.c
+++ b/
arch/x86/xen/enlighten.c
@@
-215,6
+215,7
@@
static __init void xen_init_cpuid_mask(void)
(1 << X86_FEATURE_ACPI)); /* disable ACPI */
ax = 1;
+ cx = 0;
xen_cpuid(&ax, &bx, &cx, &dx);
/* cpuid claims we support xsave; try enabling it to see what happens */