kernel_optimize_test/drivers/block
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: 37091fdd83 ("nbd: Create size change events for userspace")
Signed-off-by: Jens Axboe <axboe@fb.com>
2016-03-04 17:20:12 -07:00
..
aoe wrappers for ->i_mutex access 2016-01-22 18:04:28 -05:00
drbd Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2016-01-23 12:24:56 -08:00
mtip32xx mtip32xx: remove unneeded variable in mtip_cmd_timeout() 2016-03-04 08:15:48 -07:00
paride
rsxx rsxx: don't open-code memdup_user() 2016-01-06 08:25:24 -05:00
xen-blkback xen/blback: Fit the important information of the thread in 17 characters 2016-03-03 14:45:54 -07:00
zram zram: don't call idr_remove() from zram_remove() 2016-01-15 17:56:32 -08:00
amiflop.c
ataflop.c
brd.c mm, dax, pmem: introduce pfn_t 2016-01-15 17:56:32 -08:00
cciss_cmd.h
cciss_scsi.c
cciss_scsi.h
cciss.c SCSI misc on 20160113 2016-01-13 19:37:36 -08:00
cciss.h
cpqarray.c
cpqarray.h
cryptoloop.c
DAC960.c
DAC960.h
floppy.c
hd.c
ida_cmd.h
ida_ioctl.h
Kconfig
loop.c
loop.h
Makefile
mg_disk.c
nbd.c nbd: use correct div_s64 helper 2016-03-04 17:20:12 -07:00
null_blk.c Merge branch 'for-4.5/lightnvm' of git://git.kernel.dk/linux-block 2016-01-21 19:01:55 -08:00
osdblk.c
pktcdvd.c
ps3disk.c
ps3vram.c
rbd_types.h
rbd.c rbd: delete an unnecessary check before rbd_dev_destroy() 2016-01-21 19:36:07 +01:00
skd_main.c
skd_s1120.h
smart1,2.h
sunvdc.c
swim3.c
swim_asm.S
swim.c
sx8.c
umem.c
umem.h
virtio_blk.c
xen-blkfront.c xen-blkfront: rename indirect descriptor parameter 2016-03-03 14:45:53 -07:00
xsysace.c
z2ram.c