[PATCH v3 06/23] elf: Remove compat_arch_setup_additional_pages()

From: Dmitry Safonov
Date: Fri Jun 11 2021 - 14:03:24 EST


Now that all users rely on detecting bitness of the task by checking
in_compat_syscall(), remove compat_arch_setup_additional_pages() macro,
simplifying the code.

Signed-off-by: Dmitry Safonov <dima@xxxxxxxxxx>
---
fs/compat_binfmt_elf.c | 5 -----
1 file changed, 5 deletions(-)

diff --git a/fs/compat_binfmt_elf.c b/fs/compat_binfmt_elf.c
index fad63a4f842e..0d1aedc3bbf0 100644
--- a/fs/compat_binfmt_elf.c
+++ b/fs/compat_binfmt_elf.c
@@ -110,11 +110,6 @@
#define START_THREAD COMPAT_START_THREAD
#endif

-#ifdef compat_arch_setup_additional_pages
-#undef arch_setup_additional_pages
-#define arch_setup_additional_pages compat_arch_setup_additional_pages
-#endif
-
#ifdef compat_elf_read_implies_exec
#undef elf_read_implies_exec
#define elf_read_implies_exec compat_elf_read_implies_exec
--
2.31.1