Re: [PATCH] Btrfs: fix compile warning from __btrfs_map_block

2011-03-31 Thread liubo
On 03/31/2011 08:10 PM, Chris Mason wrote: > Excerpts from liubo's message of 2011-03-31 05:45:20 -0400: >> While compile btrfs modules on 32bit box, I encounter the following: >> >> WARNING: "__umoddi3" [fs/btrfs/btrfs.ko] undefined! >> >> The WARNING comes from that __btrfs_map_block does not use

Re: [PATCH] Btrfs: fix compile warning from __btrfs_map_block

2011-03-31 Thread Chris Mason
Excerpts from liubo's message of 2011-03-31 05:45:20 -0400: > > While compile btrfs modules on 32bit box, I encounter the following: > > WARNING: "__umoddi3" [fs/btrfs/btrfs.ko] undefined! > > The WARNING comes from that __btrfs_map_block does not use do_div() for > relative operations, this wil

[PATCH] Btrfs: fix compile warning from __btrfs_map_block

2011-03-31 Thread liubo
While compile btrfs modules on 32bit box, I encounter the following: WARNING: "__umoddi3" [fs/btrfs/btrfs.ko] undefined! The WARNING comes from that __btrfs_map_block does not use do_div() for relative operations, this will cause problems on 32bit box, for values with "u64" type should use do_di