In order to have kernel source code I downloaded kernel-18.104.22.168.2054_FC5.src.rpm from http://download.fedora.redhat.com/
. After that installed the kernel source using following commands:
rpm -ivh kernel-22.214.171.124.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.