Re: dm: era: use do_div for 64-bit division

2014-03-11 Thread Mike Snitzer
On Tue, Mar 11 2014 at 4:31am -0400, Arnd Bergmann wrote: > Commit 983043be0c1de "dm era: support non power-of-2 blocksize" > introduced the use of sector_div to divide a variable of type > dm_block_t by an integer. This fails on 32-bit machines when > CONFIG_LBDAF is not set, because that assum

[PATCH] dm: era: use do_div for 64-bit division

2014-03-11 Thread Arnd Bergmann
Commit 983043be0c1de "dm era: support non power-of-2 blocksize" introduced the use of sector_div to divide a variable of type dm_block_t by an integer. This fails on 32-bit machines when CONFIG_LBDAF is not set, because that assumes that the first argument is a 32-bit number. To allow building thi