On Sun, 9 Apr 2000, Meelis Roos wrote:
> >> fs/fs.o: In function `nfs_refresh_inode':
> >> fs/fs.o(.text+0x324d8): undefined reference to `__udivdi3'
> >> make: *** [vmlinux] Error 1
[SNIPPED...]
> nfs_calc_block_size(u64 tsize)
> {
> loff_t used = (tsize + 511) / 512;
> return (used > ULONG_MAX) ? ULONG_MAX : used;
> }
Over and over again the same non-problem has occurred.
This should be a shift, not a divide. Please fix the code.
I don't think anybody wants a call to a C-runtime library
in their kernel when a simple shift will do.
Save the procedure calls for variables.
Cheers,
Dick Johnson
Penguin : Linux version 2.3.41 on an i686 machine (800.63 BogoMips).
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:13 EST