Skip to content

Commit bdb30d5

Browse files
t-8chIngo Molnar
authored andcommitted
x86/vdso: Remove redundant #ifdeffery around in_ia32_syscall()
The #ifdefs only guard code that is also guarded by in_ia32_syscall(), which already contains the same #ifdef itself. Signed-off-by: Thomas Weißschuh <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Andrew Cooper <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Brian Gerst <[email protected]> Cc: Eric Biederman <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Juergen Gross <[email protected]> Cc: Kees Cook <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rik van Riel <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2ce8043 commit bdb30d5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/x86/entry/vdso/vma.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ static vm_fault_t vdso_fault(const struct vm_special_mapping *sm,
6565
static void vdso_fix_landing(const struct vdso_image *image,
6666
struct vm_area_struct *new_vma)
6767
{
68-
#if defined CONFIG_X86_32 || defined CONFIG_IA32_EMULATION
6968
if (in_ia32_syscall() && image == &vdso_image_32) {
7069
struct pt_regs *regs = current_pt_regs();
7170
unsigned long vdso_land = image->sym_int80_landing_pad;
@@ -76,7 +75,6 @@ static void vdso_fix_landing(const struct vdso_image *image,
7675
if (regs->ip == old_land_addr)
7776
regs->ip = new_vma->vm_start + vdso_land;
7877
}
79-
#endif
8078
}
8179

8280
static int vdso_mremap(const struct vm_special_mapping *sm,
@@ -266,7 +264,6 @@ int compat_arch_setup_additional_pages(struct linux_binprm *bprm,
266264

267265
bool arch_syscall_is_vdso_sigreturn(struct pt_regs *regs)
268266
{
269-
#if defined(CONFIG_X86_32) || defined(CONFIG_IA32_EMULATION)
270267
const struct vdso_image *image = current->mm->context.vdso_image;
271268
unsigned long vdso = (unsigned long) current->mm->context.vdso;
272269

@@ -275,7 +272,6 @@ bool arch_syscall_is_vdso_sigreturn(struct pt_regs *regs)
275272
regs->ip == vdso + image->sym_vdso32_rt_sigreturn_landing_pad)
276273
return true;
277274
}
278-
#endif
279275
return false;
280276
}
281277

0 commit comments

Comments
 (0)