Re: [PATCH v3] x86/mm/mpx: Work around MPX erratum SKD046

From: Ingo Molnar
Date: Thu May 05 2016 - 03:26:37 EST



* Ingo Molnar <mingo@xxxxxxxxxx> wrote:

> > -#if defined(CONFIG_CPU_SUP_INTEL) && defined(CONFIG_X86_32)
> > +#if defined(CONFIG_CPU_SUP_INTEL)
> > +void check_mpx_erratum(struct cpuinfo_x86 *c);
> > +#else
> > +static inline void check_mpx_erratum(struct cpuinfo_x86 *c) {}
> > +#if defined(CONFIG_X86_32)
> > int ppro_with_ram_bug(void);
> > #else
> > static inline int ppro_with_ram_bug(void) { return 0; }
> > -#endif
> > +#endif /* CONFIG_X86_32 */
> > +#endif /* CONFIG_CPU_SUP_INTEL */

Sigh. So this broke the ppro_with_ram_bug() definition, because in the new code
you put it into the wrong branch, breaking the build ...

I've dropped this for now, please fix and test the v3 version of the patch I sent
and re-send.

Thanks,

Ingo