blkio-throttle: Fix link failure failure on i386
authorVivek Goyal <vgoyal@redhat.com>
Fri, 1 Oct 2010 12:51:14 +0000 (14:51 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 1 Oct 2010 12:51:14 +0000 (14:51 +0200)
commit3aad5d3ee4e4fce8f4b5bb6ca73342dcade42b33
tree1ba65d361b6d77761f53769fc8891a56085422c6
parentfe0714377ee2ca161bf2afb7773e22f15f1786d4
blkio-throttle: Fix link failure failure on i386

o Randy Dunlap reported following linux-next failure. This patch fixes it.

on i386:

blk-throttle.c:(.text+0x1abb8): undefined reference to `__udivdi3'
blk-throttle.c:(.text+0x1b1dc): undefined reference to `__udivdi3'

o bytes_per_second interface is 64bit and I was continuing to do 64 bit
  division even on 32bit platform without help of special macros/functions
  hence the failure.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-throttle.c