libx86: Fix 32bit stubdom build of x86_cpuid_policy_fill_native()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 13 Nov 2018 11:58:47 +0000 (11:58 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 13 Nov 2018 13:32:46 +0000 (13:32 +0000)
commit1bd2b750537b656f3fa90857707be91f5ed8bfd8
treeaaaecf0033fd245a72841561cd8dac3397d9fa9e
parentb7ae5c33e6b0c5849de9916bd4b15561be43b690
libx86: Fix 32bit stubdom build of x86_cpuid_policy_fill_native()

With -m32, GCC generates a warning for &size_t == &unsigned long, which is the
typecheck hidden inside the min() macro.

Switch to using explicitly typed versions instead.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/lib/x86/cpuid.c