Home Home > GIT Browse
summaryrefslogtreecommitdiff
authorJeff Mahoney <jeffm@suse.com>2012-05-07 18:11:04 (GMT)
committer Jeff Mahoney <jeffm@suse.com>2012-05-07 18:11:04 (GMT)
commitad06d7db533ff89417e0b86b5c58212ac265733e (patch) (side-by-side diff)
tree770eb3556000707c951fbb7cf9ad5fd09d21f03e
parent749ea8f9e366dea70a04e209ba5339498625745f (diff)
IA32 emulation: Fix build problem for modular ia32 a.out
support.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--patches.rpmify/ia32-emulation-fix-build-problem-for-modular-ia32-a-out-support36
-rw-r--r--series.conf1
2 files changed, 37 insertions, 0 deletions
diff --git a/patches.rpmify/ia32-emulation-fix-build-problem-for-modular-ia32-a-out-support b/patches.rpmify/ia32-emulation-fix-build-problem-for-modular-ia32-a-out-support
new file mode 100644
index 0000000..0c415f8
--- a/dev/null
+++ b/patches.rpmify/ia32-emulation-fix-build-problem-for-modular-ia32-a-out-support
@@ -0,0 +1,36 @@
+From febb72a6e4cc6c8cffcc1ea649a3fb364f1ea432 Mon Sep 17 00:00:00 2001
+From: Larry Finger <Larry.Finger@lwfinger.net>
+Date: Sun, 6 May 2012 19:40:03 -0500
+Subject: IA32 emulation: Fix build problem for modular ia32 a.out support
+Git-commit: febb72a6e4cc6c8cffcc1ea649a3fb364f1ea432
+Patch-mainline: v3.5 or v3.4-rc7 (next release)
+
+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>
+Acked-by: Jeff Mahoney <jeffm@suse.com>
+---
+ arch/x86/kernel/process_64.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c
+index 733ca39..43d8b48 100644
+--- a/arch/x86/kernel/process_64.c
++++ b/arch/x86/kernel/process_64.c
+@@ -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)
+ {
+
diff --git a/series.conf b/series.conf
index 349a67b..2cc3073 100644
--- a/series.conf
+++ b/series.conf
@@ -36,6 +36,7 @@
patches.rpmify/apm-honor-config_apm_cpu_idle-n
patches.rpmify/nouveau-make-vga_switcheroo-code-depend-on-vga_switcheroo
patches.rpmify/pti-depends-on-x86-pci
+ patches.rpmify/ia32-emulation-fix-build-problem-for-modular-ia32-a-out-support
########################################################
# kABI consistency patches