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

From: Ingo Molnar
Date: Thu May 12 2016 - 03:16:19 EST



* Ingo Molnar <mingo@xxxxxxxxxx> wrote:

> > Changes from v1:
> > * Unconditionally enable workaround on all CPUs with MPX despite
> > whether we know it to be affected or not
> > * Add a pr_warn() when the workaround is active
> >
> > Changes from v2:
> > * fix build breakage from #ifdefs in bug.h

It now emits ugly warnings (x86-64 defconfig):

./arch/x86/include/asm/bugs.h:7:31: warning: âstruct cpuinfo_x86â declared inside parameter list
./arch/x86/include/asm/bugs.h:7:31: warning: its scope is only this definition or declaration, which is probably not what you want

Thanks,

Ingo