From: Robert Hancock <hancockr@shaw.ca>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: 'hello world' module
Date: Sat, 11 Jun 2005 10:25:31 -0600 [thread overview]
Message-ID: <42AB107B.3030203@shaw.ca> (raw)
In-Reply-To: <4egz4-2tj-15@gated-at.bofh.it>
Nick Warne wrote:
> 2.4.31, GCC 3.4.4
>
> Build like:
>
> gcc -D__KERNEL__ -I/usr/src/linux/include -DMODULE -Wall -O2 -c hello.c -o
> hello.o
That compilation method will not work on 2.6. You have to use the kernel
makefiles to build the module. See:
http://linuxdevices.com/articles/AT4389927951.html
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/
next parent reply other threads:[~2005-06-11 16:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4egz4-2tj-15@gated-at.bofh.it>
2005-06-11 16:25 ` Robert Hancock [this message]
2005-06-11 16:31 ` 'hello world' module Jan Engelhardt
2005-06-13 17:50 Nick Warne
-- strict thread matches above, loose matches on Subject: below --
2005-06-11 16:54 Nick Warne
2005-06-11 17:06 ` Jan Engelhardt
2005-06-11 15:53 Nick Warne
2005-06-11 12:11 Ilan S.
2005-06-11 18:17 ` Sam Ravnborg
2005-06-11 20:25 ` Jan Engelhardt
2005-06-12 19:17 ` Sam Ravnborg
2005-06-11 19:43 ` Jesper Juhl
2005-06-13 20:09 ` Edward Macfarlane Smith
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=42AB107B.3030203@shaw.ca \
--to=hancockr@shaw.ca \
--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