summary refs log tree commit diff
path: root/drivers/irqchip/irq-gic-common.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-03-05 00:49:31 +0100
committerJens Axboe <axboe@fb.com>2016-03-04 17:20:12 -0700
commit5e454c67fc594150e6c0da32b388a43d40200759 (patch)
tree8a8aba90d8c816a7de6d9f88b6cde63e979de2f3 /drivers/irqchip/irq-gic-common.h
parent90beb2e7a0c5143a904be04c9c03afff436e7915 (diff)
downloadlinux-5e454c67fc594150e6c0da32b388a43d40200759.tar.gz
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>
Diffstat (limited to 'drivers/irqchip/irq-gic-common.h')
0 files changed, 0 insertions, 0 deletions