From: H. Peter Anvin Date: Wed, 26 Aug 2009 04:06:03 +0000 (-0700) Subject: x86, xen: Initialize cx to suppress warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7adb4df410966dfe43e4815256e3215110648fb8;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Cc: Jeremy Fitzhardinge --- diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 0b755cd7686d..eb33aaa8415d 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 */