x86/cpuid: Fix build with CentOS 6 following c/s 7479151106
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 9 Sep 2019 15:53:28 +0000 (16:53 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 Sep 2019 12:34:29 +0000 (13:34 +0100)
commit0c83ef40d59812f2e58edac2297edb71c25f5478
tree0cef9ac5719eada178f04ac61805f5edbb7290e4
parentb50d78d0eaffb43d5f5ceeda55fa22c11f47d01b
x86/cpuid: Fix build with CentOS 6 following c/s 7479151106

GCC of a CentOS 6 vintage complains:

  cpuid.c: In function 'parse_xen_cpuid':
  cpuid.c:32: error: 'mid' may be used uninitialized in this function

This can't occur in practice because the while() loop is guarenteed to be
entered, but initialise mid to work around the issues.

Spotted by Gitlab CI.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpuid.c