diff options
author | Dave Hansen <dave.hansen@linux.intel.com> | 2020-01-23 19:41:20 +0100 |
---|---|---|
committer | Dave Hansen <dave.hansen@intel.com> | 2020-01-23 19:41:20 +0100 |
commit | 45fc24e89b7cc2e227b2f03d99dda0a2204bf383 (patch) | |
tree | 913d1b90a3a490d3290e93d38e28ed8ddae2896a /arch/x86/mm/hugetlbpage.c | |
parent | mm: remove arch_bprm_mm_init() hook (diff) | |
download | linux-45fc24e89b7cc2e227b2f03d99dda0a2204bf383.tar.xz linux-45fc24e89b7cc2e227b2f03d99dda0a2204bf383.zip |
x86/mpx: remove MPX from arch/x86
From: Dave Hansen <dave.hansen@linux.intel.com>
MPX is being removed from the kernel due to a lack of support
in the toolchain going forward (gcc).
This removes all the remaining (dead at this point) MPX handling
code remaining in the tree. The only remaining code is the XSAVE
support for MPX state which is currently needd for KVM to handle
VMs which might use MPX.
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/mm/hugetlbpage.c')
-rw-r--r-- | arch/x86/mm/hugetlbpage.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/mm/hugetlbpage.c b/arch/x86/mm/hugetlbpage.c index fab095362c50..5bfd5aef5378 100644 --- a/arch/x86/mm/hugetlbpage.c +++ b/arch/x86/mm/hugetlbpage.c @@ -19,7 +19,6 @@ #include <asm/tlbflush.h> #include <asm/pgalloc.h> #include <asm/elf.h> -#include <asm/mpx.h> #if 0 /* This is just for testing */ struct page * @@ -151,10 +150,6 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr, if (len & ~huge_page_mask(h)) return -EINVAL; - addr = mpx_unmapped_area_check(addr, len, flags); - if (IS_ERR_VALUE(addr)) - return addr; - if (len > TASK_SIZE) return -ENOMEM; |