diff options
author | Dave Hansen <dave.hansen@linux.intel.com> | 2020-01-23 10:41:13 -0800 |
---|---|---|
committer | Dave Hansen <dave.hansen@intel.com> | 2020-01-23 10:41:13 -0800 |
commit | 3a1255396b5aba40299d5dd5bde67b160a44117f (patch) | |
tree | ed82c1846d23c1aa32b7ce5e6a7052136619f31b /arch/x86/kernel/alternative.c | |
parent | 219d54332a09e8d8741c1e1982f5eae56099de85 (diff) | |
download | linux-stable-3a1255396b5aba40299d5dd5bde67b160a44117f.tar.gz linux-stable-3a1255396b5aba40299d5dd5bde67b160a44117f.tar.bz2 linux-stable-3a1255396b5aba40299d5dd5bde67b160a44117f.zip |
x86/alternatives: add missing insn.h include
From: Dave Hansen <dave.hansen@linux.intel.com>
While testing my MPX removal series, Borislav noted compilation
failure with an allnoconfig build.
Turned out to be a missing include of insn.h in alternative.c.
With MPX, it got it implicitly from:
asm/mmu_context.h -> asm/mpx.h -> asm/insn.h
Fixes: c3d6324f841b ("x86/alternatives: Teach text_poke_bp() to emulate instructions")
Reported-by: Borislav Petkov <bp@alien8.de>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: x86@kernel.org
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/alternative.c')
-rw-r--r-- | arch/x86/kernel/alternative.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index 9d3a971ea364..9ae8e3cdf53f 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -23,6 +23,7 @@ #include <asm/nmi.h> #include <asm/cacheflush.h> #include <asm/tlbflush.h> +#include <asm/insn.h> #include <asm/io.h> #include <asm/fixmap.h> |