I guess it dosen't have to do anything with the naming of the file..
these r the errors
hello.c:infunction 'init_module'
hello.c:5:error: 'KERN_INFO' undeclared (first use in this function)
hello.c:5:error

each undeclared indentifier is repoted only once .
hello.c:5:error:for eac function it appears in)
hello.c:5:error:syntax error before string constant
hello.c:infunction 'cleanup_module'
hello.c:5:error: 'KERN_INFO' undeclared (first use in this function)
this time i tried compiling the module with the command gcc -c hello.c
it would be helpful if i can compile them without using makefile....
i had tried this module with 2.4.18 it did work .....
i did the check under /usr/include for modules.h i never found them is it bcos of this ......
thanxs in advance