The kernel is already compiled, you're running it. If you're going to compile kernel modules the you need the kernel headers, you'll also need to include the headers in the search path.
Something like this should do it;
Code:
gcc -I/usr/src/linux-headers-2.6.15-23/include/ -c hello.c
A better place to ask this would probably be in the
Linux Kernel forum.