mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Sam Ravnborg" <sam@ravnborg.org>
To: "Jeba Anandhan A" <jeba_career@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Kernel Module Compilation Error
Date: Tue, 31 Aug 2004 14:49:46 +0200 (CEST)	[thread overview]
Message-ID: <57438.194.237.142.7.1093956586.squirrel@194.237.142.7> (raw)
In-Reply-To: <20040831123944.38866.qmail@web50608.mail.yahoo.com>

>
> hi,
> i am working in Fedora .
> Kernel =2.4.22-1.2115.nptl #1 Wed Oct 29 15:42:51 EST
> 2003 i686 i686 i386 GNU/Linux
>
> my kernel module program is
> #include<linux/kernel.h>
> #include<linux/module.h>
> #include<linux/mm.h>
>
>                         extern *current;
> int init_module(void){
> return 0;
> }
> void cleanup_module(void){
> }

Use a kbuld makefile:
obj-m := myfile.o

and compile using:
make -C path/to/kernel/src SUBDIRS=`pwd` modules

   Sam




      parent reply	other threads:[~2004-08-31 12:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-31 12:39 Jeba Anandhan A
2004-08-31 11:47 ` Alan Cox
2004-08-31 12:49 ` Sam Ravnborg [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=57438.194.237.142.7.1093956586.squirrel@194.237.142.7 \
    --to=sam@ravnborg.org \
    --cc=jeba_career@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /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®