Re: undefined reference error

From: Randy.Dunlap
Date: Wed Dec 24 2003 - 11:46:59 EST


On Wed, 24 Dec 2003 10:52:10 -0500 "Sumit Narayan" <sumit_uconn@xxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/