Re: [Xen-devel] [PATCH v2 3/3] x86/mtrr: convert use_intel_if u32 to bool

2017-01-19 Thread Jan Beulich
>>> On 19.01.17 at 06:24, wrote: > @@ -39,7 +39,7 @@ extern u64 size_or_mask, size_and_mask; > extern const struct mtrr_ops *mtrr_if; > > #define is_cpu(vnd) (mtrr_if && mtrr_if->vendor == X86_VENDOR_##vnd) > -#define use_intel() (mtrr_if && mtrr_if->use_intel_if == 1) > +#define use_intel()

[Xen-devel] [PATCH v2 3/3] x86/mtrr: convert use_intel_if u32 to bool

2017-01-18 Thread Doug Goldstein
This field is always only 1 currently but may allow 0 in the future so convert it to a bool to provide proper range checking by the compiler. Signed-off-by: Doug Goldstein --- xen/arch/x86/cpu/mtrr/generic.c | 2 +- xen/arch/x86/cpu/mtrr/mtrr.h| 4 ++-- 2 files changed, 3 insertions(+), 3 de