Re: [Xen-devel] [PATCH] libx86: Fix 32bit stubdom build of x86_cpuid_policy_fill_native()

2018-11-13 Thread Roger Pau Monné
On Tue, Nov 13, 2018 at 11:59:15AM +, Andrew Cooper wrote: > With -m32, GCC generates a warning for _t == long, which is the > typecheck hidden inside the min() macro. > > Switch to using explicitly typed versions instead. > > Signed-off-by: Andrew Cooper Reviewed-by: Roger Pau Monné

Re: [Xen-devel] [PATCH] libx86: Fix 32bit stubdom build of x86_cpuid_policy_fill_native()

2018-11-13 Thread Wei Liu
On Tue, Nov 13, 2018 at 11:59:15AM +, Andrew Cooper wrote: > With -m32, GCC generates a warning for _t == long, which is the > typecheck hidden inside the min() macro. > > Switch to using explicitly typed versions instead. > > Signed-off-by: Andrew Cooper Reviewed-by: Wei Liu

Re: [Xen-devel] [PATCH] libx86: Fix 32bit stubdom build of x86_cpuid_policy_fill_native()

2018-11-13 Thread Jan Beulich
>>> On 13.11.18 at 12:59, wrote: > --- a/xen/lib/x86/cpuid.c > +++ b/xen/lib/x86/cpuid.c > @@ -7,8 +7,8 @@ void x86_cpuid_policy_fill_native(struct cpuid_policy *p) > unsigned int i; > > cpuid_leaf(0, >basic.raw[0]); > -for ( i = 1; i < min(ARRAY_SIZE(p->basic.raw), > -

[Xen-devel] [PATCH] libx86: Fix 32bit stubdom build of x86_cpuid_policy_fill_native()

2018-11-13 Thread Andrew Cooper
With -m32, GCC generates a warning for _t == long, which is the typecheck hidden inside the min() macro. Switch to using explicitly typed versions instead. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Wei Liu --- xen/lib/x86/cpuid.c | 15 --- 1 file changed, 8