From: Sam Ravnborg <sam@ravnborg.org>
To: Murali Therthala <MuraliT@prodigy.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Compilation Error with a Dynamic Module
Date: Sun, 20 Oct 2002 22:43:58 +0200 [thread overview]
Message-ID: <20021020224358.A13954@mars.ravnborg.org> (raw)
In-Reply-To: <001301c2786e$1303b160$eef13ccc@kamalnara317>; from MuraliT@prodigy.net on Sun, Oct 20, 2002 at 03:22:46PM -0400
On Sun, Oct 20, 2002 at 03:22:46PM -0400, Murali Therthala wrote:
> Hi All,
>
> I am trying to compile a dynamic module shown below that creates a readable
> procs entry.
> I invoke gcc as follows.
>
> gcc -Wall -o2 -DMODULE -D_KERNEL_ -DLINUX -I
> /lib/modules/`uname -r`\build/modules -c fMod3.c
The easiet way is to add
obj-m += myprocfsexample.o
to for example fs/Makefile
Then you can see what arguments are used for gcc in the real kernel compile.
I tried compiling your file in this way - no problem.
Sam
prev parent reply other threads:[~2002-10-20 20:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-20 19:22 Murali Therthala
2002-10-20 20:43 ` 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=20021020224358.A13954@mars.ravnborg.org \
--to=sam@ravnborg.org \
--cc=MuraliT@prodigy.net \
--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®