Skip to contentSkip to conversation

Link error when futexes are disabled on 64bit architectures

PATCH New Anton Blanchard 1 participant 1 message Jun 10, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Link error when futexes are disabled on 64bit architectures

If futexes are disabled we fail to link on ppc64.

---

kernel/exit.c +1 -1
Index: kernel/kernel/exit.c
===================================================================
@@ -906,7 +906,7 @@ fastcall NORET_TYPE void do_exit(long co
 	}
 	if (unlikely(tsk->robust_list))
 		exit_robust_list(tsk);
-#ifdef CONFIG_COMPAT
+#if defined(CONFIG_FUTEX) && defined(CONFIG_COMPAT)
 	if (unlikely(tsk->compat_robust_list))
 		compat_exit_robust_list(tsk);
 #endif