[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] x86/cpuid: Fix build with CentOS 6 following c/s 7479151106
commit 0c83ef40d59812f2e58edac2297edb71c25f5478 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Mon Sep 9 16:53:28 2019 +0100 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Tue Sep 10 13:34:29 2019 +0100 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@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/arch/x86/cpuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/cpuid.c b/xen/arch/x86/cpuid.c index 36b1e2ce4c..acba0f7583 100644 --- a/xen/arch/x86/cpuid.c +++ b/xen/arch/x86/cpuid.c @@ -29,7 +29,7 @@ static int __init parse_xen_cpuid(const char *s) const char *name; unsigned int bit; } features[] __initconstrel = INIT_FEATURE_NAMES; - const struct feature *lhs, *mid, *rhs; + const struct feature *lhs, *rhs, *mid = NULL /* GCC... */; const char *feat; ss = strchr(s, ','); -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |