In order to have kernel source code I downloaded kernel-188.8.131.52.2054_FC5.src.rpm from http://download.fedora.redhat.com/
. After that installed the kernel source using following commands:
rpm -ivh kernel-184.108.40.206.2054_FC5.src.rpm
Then I navigated to /usr/src/redhat/SPECS/
rpmbuild –bp –target `uname -p`kernel –2.6.specs
Created Symbolic link to kernel source directory
ln –s /usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15/ /usr/src/linux
Finally I executed these commands at /usr/src/linux/:
Now I wrote simple module & while trying to insert it faced the problem.
Please reply if anyone knows the solution.