I'm trying to build the "hello world" sample that comes with the "Linux Device Drivers" book and am running into problems. make outputs:

% make
gcc -D__KERNEL__ -I/usr/src/kernels/2.6.23.1-42.fc8-i686/include -c hello.c -o hello.o
In file included from /usr/src/kernels/2.6.23.1-42.fc8-i686/include/linux/prefetch.h:14,
from /usr/src/kernels/2.6.23.1-42.fc8-i686/include/linux/list.h:8,
from /usr/src/kernels/2.6.23.1-42.fc8-i686/include/linux/module.h:9,
from hello.c:5:
/usr/src/kernels/2.6.23.1-42.fc8-i686/include/asm/processor.h:83: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function)
/usr/src/kernels/2.6.23.1-42.fc8-i686/include/asm/processor.h:83: error: requested alignment is not a constant
In file included from /usr/src/kernels/2.6.23.1-42.fc8-i686/include/linux/module.h:20,
from hello.c:5:
/usr/src/kernels/2.6.23.1-42.fc8-i686/include/asm/module.h:69:2: error: #error unknown processor family
make: *** [hello.o] Error 1


I'm running Fedora 8 with the 2.6.26 kernel. I've set KERNELDIR to point to the right place and also tried downloading, building, and installing a new kernel, without any luck. Any ideas? Thanks