Re: [Xen-devel] [PATCH] xen: Fix build with older versions of GCC following e34bc403c3

2017-01-06 Thread Jan Beulich
>>> On 05.01.17 at 19:01, wrote: > GCCs of at least 4.4 and earlier do not tollerate the initialisiation of the > $VENDOR_cpu_dev structures, because of c_ident becoming an anonymous union. > > Instead of using an anonymous union, reintepret c_ident[] in its CPUID form > just in get_cpu_vendor().

Re: [Xen-devel] [PATCH] xen: Fix build with older versions of GCC following e34bc403c3

2017-01-05 Thread Boris Ostrovsky
On 01/05/2017 01:01 PM, Andrew Cooper wrote: > GCCs of at least 4.4 and earlier do not tollerate the initialisiation of the > $VENDOR_cpu_dev structures, because of c_ident becoming an anonymous union. > > Instead of using an anonymous union, reintepret c_ident[] in its CPUID form > just in get_cpu

[Xen-devel] [PATCH] xen: Fix build with older versions of GCC following e34bc403c3

2017-01-05 Thread Andrew Cooper
GCCs of at least 4.4 and earlier do not tollerate the initialisiation of the $VENDOR_cpu_dev structures, because of c_ident becoming an anonymous union. Instead of using an anonymous union, reintepret c_ident[] in its CPUID form just in get_cpu_vendor(). Signed-off-by: Andrew Cooper --- CC: Jan