Messages in this thread | | | Date | Thu, 5 Oct 2017 15:31:30 +0200 (CEST) | From | Thomas Gleixner <> | Subject | Re: [PATCH v7 4/5] x86/xsave: Make XSAVE check the base CPUID features before enabling |
| |
On Wed, 4 Oct 2017, Andi Kleen wrote: > + /* > + * Clear XSAVE features that are disabled in the normal CPUID. > + */ > + for (i = 0; i < ARRAY_SIZE(xsave_cpuid_features); i++) > + if (!boot_cpu_has(xsave_cpuid_features[i])) > + xfeatures_mask &= ~BIT(i);
Please add curly braces around this multi line statement.
https://marc.info/?l=linux-kernel&m=148467980905537&w=2
Thanks,
tglx
| |