IA32 emulation: Fix build problem for modular ia32 a.out support
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 7 May 2012 00:40:03 +0000 (19:40 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 May 2012 01:26:20 +0000 (18:26 -0700)
Commit ce7e5d2d19bc ("x86: fix broken TASK_SIZE for ia32_aout") breaks
kernel builds when "CONFIG_IA32_AOUT=m" with

  ERROR: "set_personality_ia32" [arch/x86/ia32/ia32_aout.ko] undefined!
  make[1]: *** [__modpost] Error 1

The entry point needs to be exported.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Acked-by: Al Viro <viro@zeniv.linux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/process_64.c

index 733ca39f367ebcc222eaca07b87eb170f2831e1e..43d8b48b23e61dc20afb3ddc0aed3308e7d92f2b 100644 (file)
@@ -423,6 +423,7 @@ void set_personality_ia32(bool x32)
                current_thread_info()->status |= TS_COMPAT;
        }
 }
+EXPORT_SYMBOL_GPL(set_personality_ia32);
 
 unsigned long get_wchan(struct task_struct *p)
 {