On Fri, Oct 05, 2001 at 06:19:03PM -0400, Hong Hsu wrote: > I got "implicit declaration of function `module_register_chrdev'" during > the compilation with kernel 2.4.2 on Pentium 4. I wonder the > module_register_chrdev() should be replaced by inter_module_register()? There is no such thing as module_register_chrdev(). You probably want register_chrdev(). > Secondly, the device_read and device_write in my following code warning me: > initialization from incompatible pointer type > > It seems to me that file_operations defined in linux/include/fs.h is > changed. Could someone tell how it is changed and how can I trace the > change? Use named initialisers so you are no longer dependent on the structure layout: struct file_operations my_fops = { read: my_read, write: my_write, open: my_open, release: my_release }; Erik -- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl WWW: http://www-ict.its.tudelft.nl/~erik/ - Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/