Source: MontaVista Software, Inc. Type: Defect Fix Description: CONFIG_FUTEX is an option but kernel/exit.c and fs/dcache.c refer to functions in kernel/futux.c unconditionally. This patch ties those request off and allows a build with CONFIG_FUTEX "not set". Signed-off-by: George Anzinger include/linux/futex.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletion(-) Index: linux-2.6.14-rc/include/linux/futex.h =================================================================== --- linux-2.6.14-rc.orig/include/linux/futex.h +++ linux-2.6.14-rc/include/linux/futex.h @@ -35,9 +35,13 @@ long do_futex(unsigned long uaddr, int op, int val, unsigned long timeout, unsigned long uaddr2, int val2, int val3); - +#ifdef CONFIG_FUTEX extern void futex_free_robust_list(struct inode *inode); extern void exit_futex(struct task_struct *tsk); +#else +#define futex_free_robust_list(a) +#define exit_futex(b) +#endif static inline void futex_init_inode(struct inode *inode) { INIT_LIST_HEAD(&inode->i_data.robust_list);