]> git.karo-electronics.de Git - karo-tx-linux.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>
Mon, 3 Oct 2011 16:28:36 +0000 (12:28 -0400)
commitd27ad73a8aabab80d3da6c5133afca87c9a2ea0a
treea00352036ebc883749b073a22788ca4c6db1dec1
parent7af54174ed72ae493c0c45dbddfd1af745a6b604
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