hi, I was trying the procfs.c program in Chapter 4 of LKMPG. It compiled but with a lot of warnings. Then when we tried it to insert using insmod it gave me this error: #insmod procfs.o procfs.o: unresolved symbol proc_register procfs.o: unresolved symbol proc_unregister # I am using kernel:2.4.9 gcc: 2.96 Actuallt the warnings that i got suring compilation are really huge. They are : ------------ # gcc -D__KERNEL__ -DMODULE -DLINUX -Wall -I/usr/src/linux/include -O2 -c procfs.c In file included from /usr/src/linux/include/linux/fs.h:19, from /usr/src/linux/include/linux/capability.h:17, from /usr/src/linux/include/linux/binfmts.h:5, from /usr/src/linux/include/linux/sched.h:9, from /usr/src/linux/include/linux/mm.h:4, from /usr/src/linux/include/linux/slab.h:14, from /usr/src/linux/include/linux/proc_fs.h:5, from procfs.c:15: /usr/src/linux/include/linux/dcache.h: In function `dget': /usr/src/linux/include/linux/dcache.h:244: warning: implicit declaration of function `printk_Rsmp_1b7d4074' procfs.c: In function `module_output': procfs.c:54: warning: implicit declaration of function `sprintf_Rsmp_3c2c5af5' procfs.c: At top level: procfs.c:123: warning: initialization from incompatible pointer type procfs.c:124: warning: initialization from incompatible pointer type procfs.c:129: warning: initialization from incompatible pointer type procfs.c:133: warning: initialization from incompatible pointer type procfs.c:139: warning: initialization from incompatible pointer type procfs.c:156: warning: excess elements in struct initializer procfs.c:156: warning: (near initialization for `Inode_Ops_4_Our_Proc_File') procfs.c: In function `init_module': procfs.c:175: warning: implicit declaration of function `proc_register' procfs.c: In function `cleanup_module': procfs.c:183: warning: implicit declaration of function `proc_unregister' # ------------- The lines 123 - 129 are : ----snip----- static struct file_operations File_Ops_4_Our_Proc_File = { NULL, module_output, module_input, NULL, NULL, NULL, NULL, module_open, #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,0) NULL, #endif module_close, }; ---- snip ------ this program segment is giving me the incompatible pointer type warnings. What should I do to correct all these errors. TIA Karthik __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/