> When I do an 'insmod' on the serial device driver
> (/usr/src/linux/drivers/char/serial.c), I get this message:
> serial.o: couldn't find the kernel version the module was compiled for
> I tried doing a 'insmod -f serial.o' but I get the same message.
> Is there something I can do at compile time or is there something I'm missing
> I'm doing a simple compile:
> % gcc -D__KERNEL__ -c serial.c
I've never compiled anything to do with the kernel that way,
always used the makefile. But with modules, you can either
generic modules, or you can have versioned modules. If you
versioned modules, they are tied into the kernel. If you
the kernel version, you must upgrade the modules. I don't
this happens with the generic modules. Downside of generic
if an interface changes, you're screwed.