From 693f56fdd88747dbfd427ff110b58e8913e601c6 Mon Sep 17 00:00:00 2001 From: Dmitry Safonov Date: Fri, 16 Sep 2016 21:37:13 +0300 Subject: [PATCH] parasite-vdso: vdso_map_compat under CONFIG_COMPAT It's used in restorer to map compatible vDSO blob. When !CONFIG_COMPAT it's not needed and even more: vdso_fill_symtable_compat is macro and is undefined in that case. It will never shoot, as compat_vdso is always false for that case, but get rid of it. I also need to leave CONFIG_X86_64 here, as arch_prctl() is not defined for x86_32. Cc: Cyrill Gorcunov Signed-off-by: Dmitry Safonov Signed-off-by: Pavel Emelyanov Signed-off-by: Andrei Vagin --- criu/pie/parasite-vdso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/criu/pie/parasite-vdso.c b/criu/pie/parasite-vdso.c index 512186c7a..03a3f0e0d 100644 --- a/criu/pie/parasite-vdso.c +++ b/criu/pie/parasite-vdso.c @@ -68,7 +68,7 @@ int vdso_do_park(struct vdso_symtable *sym_rt, unsigned long park_at, unsigned l return ret; } -#ifdef CONFIG_X86_64 +#if defined(CONFIG_X86_64) && defined(CONFIG_COMPAT) #ifndef ARCH_MAP_VDSO_32 # define ARCH_MAP_VDSO_32 0x2002 #endif