Messages in this thread | | | Date | Wed, 24 Dec 2003 08:35:40 -0800 | From | "Randy.Dunlap" <> | Subject | Re: undefined reference error |
| |
On Wed, 24 Dec 2003 10:52:10 -0500 "Sumit Narayan" <sumit_uconn@lycos.com> wrote:
| Hi, | | Pretty out of the place I am, and beg your pardon. I have modified my kernel 2.6.0 with few new functions in fs/kernthread.c, which required a header file linux/kernthread.h. | | On compilation, I get this error: | | fs/built-in.o(.text+0x242f1): In function 'stop_kernthread' : | : undefined reference to 'lock_kernel' | make: ***[.tmp_vmlinux1] Error 1 | | Could someone help me out with this. | Thanks in advance.
Add this line near the top of the source file, with the other #include lines:
#include <linux/smp_lock.h>
-- ~Randy MOTD: Always include version info. - 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/
| |