Arnd Bergmann 5e454c67fc nbd: use correct div_s64 helper
The do_div() macro now checks its arguments for the correct type,
and refuses anything other than u64, so we get a warning about
nbd_ioctl passing in an loff_t:

drivers/block/nbd.c: In function '__nbd_ioctl':
drivers/block/nbd.c:757:77: error: comparison of distinct pointer types lacks a cast [-Werror]

This changes the nbd code to use div_s64() instead, which takes
a signed argument.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 37091fdd831f ("nbd: Create size change events for userspace")
Signed-off-by: Jens Axboe <axboe@fb.com>
2016-03-04 17:20:12 -07:00
..
2016-01-22 18:04:28 -05:00
2016-01-06 08:25:24 -05:00
2016-01-15 17:56:32 -08:00
2016-01-13 19:37:36 -08:00
2014-08-08 15:57:28 -07:00
2015-09-23 11:01:16 -06:00
2016-03-04 17:20:12 -07:00
2013-11-08 09:10:30 -07:00