summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-08-25 21:06:03 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-08-25 21:10:32 -0700
commit7adb4df410966dfe43e4815256e3215110648fb8 (patch)
tree60862ffa783ce6bbde23b5ad556b162d0bfa2eb6 /arch/x86/xen/enlighten.c
parentd560bc61575efae43595cbcb56d0ba3b9450139c (diff)
downloadkernel-crypto-7adb4df410966dfe43e4815256e3215110648fb8.tar.gz
kernel-crypto-7adb4df410966dfe43e4815256e3215110648fb8.tar.xz
kernel-crypto-7adb4df410966dfe43e4815256e3215110648fb8.zip
x86, xen: Initialize cx to suppress warning
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>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r--arch/x86/xen/enlighten.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 0b755cd7686..eb33aaa8415 100644
--- 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 */