This is my first attempt at building a kernel module,
so please go easy on me!

I get the following error message when attempting to compile
a simple, 'Hello World!' module:

gcc -O2 -DMODULE -D__KERNEL__ -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -isystem /lib/modules/`uname -r`/build/include -c -o
hello.o hello.c
In file included from /usr/include/linux/module.h:20,
from hello.c:1:
/usr/include/asm/module.h:54:2: #error unknown processor family

In case you want it, the source is given below:



#if defined(CONFIG_SMP)
#define __SMP__



int init_module(void)
printk(KERN_DEBUG "Hello Kernel!\n");
return 0;

void cleanup_module(void)
printk(KERN_DEBUG "Goodbye, Kernel!\n");


Thank you for your time.
Gavin Brewer.