[PATCH v3 03/23] arm/elf: Remove needless ifdef CONFIG_MMU

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


CONFIG_VDSO depends on MMU, after removing ARCH_HAS_SETUP_ADDITIONAL_PAGES
definition, the guards are excessive.

Signed-off-by: Dmitry Safonov <dima@xxxxxxxxxx>
---
arch/arm/include/asm/elf.h | 2 --
1 file changed, 2 deletions(-)

diff --git a/arch/arm/include/asm/elf.h b/arch/arm/include/asm/elf.h
index a7cd90b3a779..47347d7412ec 100644
--- a/arch/arm/include/asm/elf.h
+++ b/arch/arm/include/asm/elf.h
@@ -137,7 +137,6 @@ extern int arm_elf_read_implies_exec(int);
extern void elf_set_personality(const struct elf32_hdr *);
#define SET_PERSONALITY(ex) elf_set_personality(&(ex))

-#ifdef CONFIG_MMU
#ifdef CONFIG_VDSO
#define ARCH_DLINFO \
do { \
@@ -145,6 +144,5 @@ do { \
(elf_addr_t)current->mm->context.vdso); \
} while (0)
#endif
-#endif

#endif
--
2.31.1