Commit-ID: 7adb4df410966dfe43e4815256e3215110648fb8 Gitweb: http://git.kernel.org/tip/7adb4df410966dfe43e4815256e3215110648fb8 Author: H. Peter Anvin <hpa@xxxxxxxxx> AuthorDate: Tue, 25 Aug 2009 21:06:03 -0700 Committer: H. Peter Anvin <hpa@xxxxxxxxx> CommitDate: Tue, 25 Aug 2009 21:10:32 -0700 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@xxxxxxxxx> Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx> --- arch/x86/xen/enlighten.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 0b755cd..eb33aaa 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 */ -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |