2.6.14-rc5 fails to build with out CONFIG_FUTEX
diff mbox series

Message ID 435D6F50.1000403@mvista.com
State New, archived
Headers show
Series
  • 2.6.14-rc5 fails to build with out CONFIG_FUTEX
Related show

Commit Message

George Anzinger Oct. 24, 2005, 11:33 p.m. UTC
Both kernel/exit.c and fs/dcache.c refer to functions in kernel/futex.c which is not built unless 
CONFIG_FUTEX is true.  This causes a build failure at link time:
   LD      vmlinux
kernel/built-in.o(.text+0xab58): In function `do_exit':
/usr/src/linux-2.6.14-rc/kernel/exit.c:851: undefined reference to `exit_futex'
fs/built-in.o(.text+0x1b2bf): In function `dput':
/usr/src/linux-2.6.14-rc/fs/dcache.c:165: undefined reference to `futex_free_robust_list'

Attached patch "defines" away the problem.

Comments

Andrew Morton Oct. 24, 2005, 11:54 p.m. UTC | #1
George Anzinger <george@mvista.com> wrote:
>
> Both kernel/exit.c and fs/dcache.c refer to functions in kernel/futex.c which is not built unless 
> CONFIG_FUTEX is true.  This causes a build failure at link time:
>    LD      vmlinux
> kernel/built-in.o(.text+0xab58): In function `do_exit':
> /usr/src/linux-2.6.14-rc/kernel/exit.c:851: undefined reference to `exit_futex'
> fs/built-in.o(.text+0x1b2bf): In function `dput':
> /usr/src/linux-2.6.14-rc/fs/dcache.c:165: undefined reference to `futex_free_robust_list'

This problem is specific to the robust-futexes patch.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
George Anzinger Oct. 25, 2005, 12:38 a.m. UTC | #2
Andrew Morton wrote:
> George Anzinger <george@mvista.com> wrote:
> 
>>Both kernel/exit.c and fs/dcache.c refer to functions in kernel/futex.c which is not built unless 
>>CONFIG_FUTEX is true.  This causes a build failure at link time:
>>   LD      vmlinux
>>kernel/built-in.o(.text+0xab58): In function `do_exit':
>>/usr/src/linux-2.6.14-rc/kernel/exit.c:851: undefined reference to `exit_futex'
>>fs/built-in.o(.text+0x1b2bf): In function `dput':
>>/usr/src/linux-2.6.14-rc/fs/dcache.c:165: undefined reference to `futex_free_robust_list'
> 
> 
> This problem is specific to the robust-futexes patch.

And that appears to be in rc5, right?
Andrew Morton Oct. 25, 2005, 12:50 a.m. UTC | #3
George Anzinger <george@mvista.com> wrote:
>
> Andrew Morton wrote:
> > George Anzinger <george@mvista.com> wrote:
> > 
> >>Both kernel/exit.c and fs/dcache.c refer to functions in kernel/futex.c which is not built unless 
> >>CONFIG_FUTEX is true.  This causes a build failure at link time:
> >>   LD      vmlinux
> >>kernel/built-in.o(.text+0xab58): In function `do_exit':
> >>/usr/src/linux-2.6.14-rc/kernel/exit.c:851: undefined reference to `exit_futex'
> >>fs/built-in.o(.text+0x1b2bf): In function `dput':
> >>/usr/src/linux-2.6.14-rc/fs/dcache.c:165: undefined reference to `futex_free_robust_list'
> > 
> > 
> > This problem is specific to the robust-futexes patch.
> 
> And that appears to be in rc5, right?
> 

Nope.  Your patch is not applicable to mainline kernels.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
George Anzinger Oct. 25, 2005, 5:11 a.m. UTC | #4
Andrew Morton wrote:
> George Anzinger <george@mvista.com> wrote:
> 
>>Andrew Morton wrote:
>>
>>>George Anzinger <george@mvista.com> wrote:
>>>
>>>
>>>>Both kernel/exit.c and fs/dcache.c refer to functions in kernel/futex.c which is not built unless 
>>>>CONFIG_FUTEX is true.  This causes a build failure at link time:
>>>>  LD      vmlinux
>>>>kernel/built-in.o(.text+0xab58): In function `do_exit':
>>>>/usr/src/linux-2.6.14-rc/kernel/exit.c:851: undefined reference to `exit_futex'
>>>>fs/built-in.o(.text+0x1b2bf): In function `dput':
>>>>/usr/src/linux-2.6.14-rc/fs/dcache.c:165: undefined reference to `futex_free_robust_list'
>>>
>>>
>>>This problem is specific to the robust-futexes patch.
>>
>>And that appears to be in rc5, right?
>>
Ok, got it, excuse the noise.
tip-bot for Ingo Molnar Oct. 25, 2005, 10:34 a.m. UTC | #5
* George Anzinger <george@mvista.com> wrote:

> Both kernel/exit.c and fs/dcache.c refer to functions in 
> kernel/futex.c which is not built unless CONFIG_FUTEX is true.  This 
> causes a build failure at link time:

uhm, -rt5 you wanted to write, and a different Cc: list, right? :-)

otherwise, thanks and applied.

	Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Patch
diff mbox series

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);