insmod kernel error
hello.c:
#define MODULE 2.4.20-8smp
#include <linux/module.h>
int init_module(void){printk("<1>Hello World!");return 0;}
void cleanup_module(void){printk("<1>Goodbye cruel world!");}
After I compile a hello.c file into hello.o, I insmod hello.o
but find the error:
hello.o: kernel-module version mismatch
hello.o was compiled for kernel version 2.4.20
while this kernel is version 2.4.20-8.
why the error ? how to solve it?
thanks