All of lore.kernel.org
 help / color / mirror / Atom feed
* undefined reference error
@ 2003-12-24 15:52 Sumit Narayan
  2003-12-24 16:35 ` Randy.Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Sumit Narayan @ 2003-12-24 15:52 UTC (permalink / raw)
  To: linux-kernel

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.

Sumit


____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: undefined reference error
  2003-12-24 15:52 undefined reference error Sumit Narayan
@ 2003-12-24 16:35 ` Randy.Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy.Dunlap @ 2003-12-24 16:35 UTC (permalink / raw)
  To: sumit_uconn; +Cc: linux-kernel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-24 16:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-24 15:52 undefined reference error Sumit Narayan
2003-12-24 16:35 ` Randy.Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.