um: use the right ifdef around exports in user_syms.c
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 11 Feb 2012 00:02:28 +0000 (19:02 -0500)
committerRichard Weinberger <richard@nod.at>
Sat, 24 Mar 2012 23:29:55 +0000 (00:29 +0100)
... the same one that controls whether elf_aux.o is included into the
build, bringing the vsyscall_e... into it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/os-Linux/Makefile
arch/um/os-Linux/user_syms.c

index dd764101e48823b23113cf5c32f09368382dca4c..08ff5094fcdd9c82897d32b1c877284803b497b2 100644 (file)
@@ -13,8 +13,6 @@ USER_OBJS := $(user-objs-y) aio.o elf_aux.o execvp.o file.o helper.o irq.o \
        main.o mem.o process.o registers.o sigio.o signal.o start_up.o time.o \
        tty.o umid.o util.o
 
-CFLAGS_user_syms.o += -DSUBARCH_$(SUBARCH)
-
 HAVE_AIO_ABI := $(shell [ -r /usr/include/linux/aio_abi.h ] && \
        echo -DHAVE_AIO_ABI )
 CFLAGS_aio.o += $(HAVE_AIO_ABI)
index 45ffe46871e0528e388ff58aa264694647c06235..73926fa3f96b2e92efa8c3d301f89da027ee1808 100644 (file)
@@ -45,7 +45,7 @@ EXPORT_SYMBOL(readdir64);
 extern void truncate64(void) __attribute__((weak));
 EXPORT_SYMBOL(truncate64);
 
-#ifdef SUBARCH_i386
+#ifdef CONFIG_ARCH_REUSE_HOST_VSYSCALL_AREA
 EXPORT_SYMBOL(vsyscall_ehdr);
 EXPORT_SYMBOL(vsyscall_end);
 #endif