The version of the header and source files must match your kernel.
Check your kernel version with:
If they don't google for how to install them.
And try this Makefile:
Code:
obj-m += hello.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
BTW the whitespace before the command make must be the tab character; eight spaces will
not suffice.
Regards