Vijay, try using the sector_div function. This allows for dividing 64bit numbers on 32bit systems.
Sincerely, Chase Maupin Software Applications Catalog DSP Products e-mail: [email protected] phone: (281) 274-3285 > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf > Of Vijay Soni > Sent: Tuesday, July 14, 2009 3:37 PM > To: [email protected] > Subject: please help with this link error > > > can someone tell me how I can get rid of thie foollwing link error: ( I > have mad chaged size of some variables from 32 bit to 64 bits and there > are operations (such as division) which is causing this error, Also I am > using old kernel 2.6.10) > > > > [vs...@linux trunk]$ make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage > CHK include/linux/version.h > SPLIT include/linux/autoconf.h -> include/config/* > SYMLINK include/asm-arm/arch -> include/asm-arm/arch-davinci > make[1]: `arch/arm/kernel/asm-offsets.s' is up to date. > CHK include/asm-arm/constants.h > make[1]: `include/asm-arm/mach-types.h' is up to date. > CHK include/linux/compile.h > CHK usr/initramfs_list > GEN .version > CHK include/linux/compile.h > UPD include/linux/compile.h > CC init/version.o > LD init/built-in.o > LD .tmp_vmlinux1 > fs/built-in.o(.text+0x679d0): In function `yaffs_internal_read_super': > yaffs_mtdif2.c: undefined reference to `__aeabi_uldivmod' > drivers/built-in.o(.text+0x5a120): In function `add_mtd_partitions': > xtkbd.c: undefined reference to `__umoddi3' > drivers/built-in.o(.text+0x5a158):xtkbd.c: undefined reference to > `__umoddi3' > make: *** [.tmp_vmlinux1] Error 1 > > > > > > _______________________________________________ > Davinci-linux-open-source mailing list > [email protected] > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
