You need to use -O2 -D__KERNEL__ -DMODULE
as gcc options (or have the #defines near the
top of your driver source file).
~Randy
___________________________________________________
|Randy Dunlap Intel Corp., DAL Sr. SW Engr.|
|randy.dunlap.at.intel.com 503-696-2055|
|NOTE: Any views presented here are mine alone |
|and may not represent the views of my employer. |
|_________________________________________________|
> -----Original Message-----
> From: Lee Willis [mailto:lee@gbdirect.co.uk]
> Sent: Tuesday, February 29, 2000 7:52 AM
> To: linux-kernel@vger.rutgers.edu
> Subject: Re: newbie : bottom half
>
>
> ejc <eli.carter@inet.com> writes:
>
> > You've probably gotten a dozen responses in private, but in case you
> > haven't; Go buy Rubini's book "Linux Device Drivers" (O'Reilly &
> > Associates, Inc.) An updated version is in the works, but
> the version
> > that is out will explain much more than just bottom halves. Anyone
> > recommend other good resources on this?
>
> Hmm, on the subject, the primitive device driver they give, ie
>
> #define MODULE
> #include <linux/module.h>
>
> int init_module(void) {
> printk("<1>Hello world\n");
> return 0;
> }
>
> void cleanup_module(void) {
> printk("<1>Goodbye cruel world\n");
> }
>
> Doesn't insert cleanly complaining of:
> mod.o: unresolved symbol printk
>
> I'm sure this used to work under 2.0.x, what's changed?
>
> Lee
> --
> I was doing object-oriented assembly at 1 year old ...
> For some reason my mom insists on calling it "Playing with blocks"
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:22 EST