]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/enlighten: Fix compile warnings and set cx to known value.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 29 Sep 2011 17:06:42 +0000 (13:06 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 19 Oct 2011 18:48:06 +0000 (14:48 -0400)
commit666ca24d81b0e620498487215ba986e58577ec35
tree1aecd1cb134edeb45924b04fb4d3edceb67e287c
parent8a687d12b4b323fc8f632cf84baa9903a24331e0
xen/enlighten: Fix compile warnings and set cx to known value.

We get:
linux/arch/x86/xen/enlighten.c: In function ‘xen_start_kernel’:
linux/arch/x86/xen/enlighten.c:226: warning: ‘cx’ may be used uninitialized in this function
linux/arch/x86/xen/enlighten.c:240: note: ‘cx’ was declared here

and the cx is really not set but passed in the xen_cpuid instruction
which masks the value with returned masked_ecx from cpuid. This
can potentially lead to invalid data being stored in cx.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/enlighten.c