Skip to content

Commit

Permalink
riscv: Remove gate area stubs
Browse files Browse the repository at this point in the history
Since commit a6c19df ("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>
  • Loading branch information
Andy Lutomirski authored and Paul Walmsley committed Jul 1, 2019
1 parent 71ec982 commit 556024d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
4 changes: 0 additions & 4 deletions arch/riscv/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
19 changes: 0 additions & 19 deletions arch/riscv/kernel/vdso.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 556024d

Please sign in to comment.