[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4A865D86.2050002@goop.org>
Date: Sat, 15 Aug 2009 00:02:30 -0700
From: Jeremy Fitzhardinge <jeremy@...p.org>
To: Josh Triplett <josh@...htriplett.org>
CC: linux-kernel@...r.kernel.org, xen-devel@...ts.xensource.com,
Andrew Morton <akpm@...ux-foundation.org>,
Jeremy Fitzhardinge <jeremy@...source.com>
Subject: Re: [PATCH] xen: xen_init_cpuid_mask: Zero cx before calling xen_cpuid
On 08/08/09 13:15, Josh Triplett wrote:
> CPUID function 1 doesn't use cx, but xen_cpuid doesn't know that,
> resulting in this warning:
>
> arch/x86/xen/enlighten.c: In function ‘xen_start_kernel’:
> arch/x86/xen/enlighten.c:192: warning: ‘cx’ may be used uninitialized in this function
> arch/x86/xen/enlighten.c:205: note: ‘cx’ was declared here
>
> Set cx = 0 to avoid this warning. This seems preferable to implementing
> a xen_cpuid_nocount without the input constraint for cx, and either of
> those seem preferable to just ignoring the warning.
>
Thanks, applied.
J
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists