mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: sumit_uconn@lycos.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: undefined reference error
Date: Wed, 24 Dec 2003 08:35:40 -0800	[thread overview]
Message-ID: <20031224083540.40a04c0d.rddunlap@osdl.org> (raw)
In-Reply-To: <BCLLEMEMOFNOFJAA@mailcity.com>

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.

      reply	other threads:[~2003-12-24 16:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-24 15:52 Sumit Narayan
2003-12-24 16:35 ` Randy.Dunlap [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031224083540.40a04c0d.rddunlap@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sumit_uconn@lycos.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®