On Tue, 2005-09-27 at 14:12 +0530, raja wrote: > Hi, > I am following the book LDD3 by rubini.I implemented scull driver > similar to the scull device that is given in the book.First i wrote > minimal functions read,write,open,release,llseek > And while compiling the modules i am getting the error that > > > Building modules, stage 2. > MODPOST > *** Warning: > "__divdi3" [/home/nagaraj/others/Backup-Progs/Device-Drivers/charDrivers-rubini/scull/scull_1.ko] undefined! > *** Warning: > "__moddi3" [/home/nagaraj/others/Backup-Progs/Device-Drivers/charDrivers-rubini/scull/scull_1.ko] undefined! > > CC /home/nagaraj/others/Backup-Progs/Device-Drivers/charDrivers-rubini/scull/scull_1.mod.o > LD > [M] /home/nagaraj/others/Backup-Progs/Device-Drivers/charDrivers-rubini/scull/scull_1.ko > make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686' > > will you please help why it came. you are using / and % operators on 64 bit variables. Don't do that; use helpers like "sector_div" and co instead. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/