]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
riscv: Remove gate area stubs
authorAndy Lutomirski <luto@kernel.org>
Thu, 27 Jun 2019 04:46:18 +0000 (21:46 -0700)
committerPaul Walmsley <paul.walmsley@sifive.com>
Mon, 1 Jul 2019 20:13:36 +0000 (13:13 -0700)
Since commit a6c19dfe3994 ("arm64,ia64,ppc,s390,sh,tile,um,x86,mm:
remove default gate area"), which predates riscv's inclusion in
Linux by almost three years, the default behavior wrt the gate area
is sane.  Remove riscv's gate area stubs.

Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: linux-riscv@lists.infradead.org
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/include/asm/page.h
arch/riscv/kernel/vdso.c

index 8ddb6c7fedacfdcab3e39b95ae3cfb51ffa01645..d3e5f6c0c21a54d772f17c57752d07076d1e7fb9 100644 (file)
@@ -115,8 +115,4 @@ extern unsigned long min_low_pfn;
 #include <asm-generic/memory_model.h>
 #include <asm-generic/getorder.h>
 
-/* vDSO support */
-/* We do define AT_SYSINFO_EHDR but don't use the gate mechanism */
-#define __HAVE_ARCH_GATE_AREA
-
 #endif /* _ASM_RISCV_PAGE_H */
index a0084c36d27005dbad5417cf00fdc8c3eaacae07..c9c21e0d56417cf3ebb3ccab116f44710da1b31f 100644 (file)
@@ -92,22 +92,3 @@ const char *arch_vma_name(struct vm_area_struct *vma)
                return "[vdso]";
        return NULL;
 }
-
-/*
- * Function stubs to prevent linker errors when AT_SYSINFO_EHDR is defined
- */
-
-int in_gate_area_no_mm(unsigned long addr)
-{
-       return 0;
-}
-
-int in_gate_area(struct mm_struct *mm, unsigned long addr)
-{
-       return 0;
-}
-
-struct vm_area_struct *get_gate_vma(struct mm_struct *mm)
-{
-       return NULL;
-}