compiling a kernel module with gcc

hi every body
I wanna compile a module with gcc, but I contacted to these errors:
“asm/types.h” not found
“lasm/inkage.h” not found
> what should I do?
I use gcc like this:
gcc -c hello.c __KERNEL_D -I /usr/src/linux3.4/include
>:(

Hi
Just use the softlink eg linux and it’s asm-generic now;


asm-generic/types.h
asm-generic/linkage.h
gcc -c hello.c __KERNEL_D -I /usr/src/linux/include