]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.17.2/link-error-when-futexes-are-disabled-on-64bit-architectures.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.17.2 / link-error-when-futexes-are-disabled-on-64bit-architectures.patch
1 From stable-bounces@linux.kernel.org Sun Jun 25 05:50:21 2006
2 Date: Sun, 25 Jun 2006 05:48:44 -0700
3 From: akpm@osdl.org
4 To: torvalds@osdl.org
5 Cc: anton@samba.org, stable@kernel.org
6 Subject: Link error when futexes are disabled on 64bit architectures
7
8
9 From: Anton Blanchard <anton@samba.org>
10
11 If futexes are disabled we fail to link on ppc64.
12
13 Signed-off-by: Anton Blanchard <anton@samba.org>
14 Cc: <stable@kernel.org>
15 Signed-off-by: Andrew Morton <akpm@osdl.org>
16 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
17 ---
18
19 kernel/exit.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22 --- linux-2.6.17.1.orig/kernel/exit.c
23 +++ linux-2.6.17.1/kernel/exit.c
24 @@ -899,7 +899,7 @@ fastcall NORET_TYPE void do_exit(long co
25 }
26 if (unlikely(tsk->robust_list))
27 exit_robust_list(tsk);
28 -#ifdef CONFIG_COMPAT
29 +#if defined(CONFIG_FUTEX) && defined(CONFIG_COMPAT)
30 if (unlikely(tsk->compat_robust_list))
31 compat_exit_robust_list(tsk);
32 #endif