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é
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
>>> 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),
> -
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