lkml.org 
[lkml]   [2003]   [Dec]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.024 / U:4.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site