gcc -D__KERNEL__ -I/usr/src/linux/include/ -DMODULE -Wall -O2 -c hello.c
-o hello.o
In file included from /usr/src/linux/include/linux/prefetch.h:14,
from /usr/src/linux/include/linux/list.h:6,
from /usr/src/linux/include/linux/module.h:9,
from hello.c:11:
/usr/src/linux/include/asm/processor.h:112: error:
‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function)
/usr/src/linux/include/asm/processor.h:112: error: requested alignment
is not a constant
In file included from /usr/src/linux/include/linux/prefetch.h:14,
from /usr/src/linux/include/linux/list.h:6,
from /usr/src/linux/include/linux/module.h:9,
from hello.c:11:
I suspect the version:
I installed 2.6.26.11 then 2.6.26.12, but both generate the same vmlinuz
but not same initrd
Here is a part of /usr/src/linux/include/asm, I have 2 dates, probably
one came from version 26.11 ( 2008-07-13 ) and other from 26.12
(2008-12-15 )??????