qemu-e2k/hw
Laurent Vivier 13385ae168 block: Use DIV_ROUND_UP
Replace (((n) + (d) - 1) /(d)) by DIV_ROUND_UP(n,d).

This patch is the result of coccinelle script
scripts/coccinelle/round.cocci

CC: qemu-block@nongnu.org
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2016-06-07 18:19:24 +03:00
..
9pfs all: Remove unnecessary glib.h includes 2016-06-07 18:19:24 +03:00
acpi acpi: make bios_linker_loader_add_checksum() API offset based 2016-06-07 15:39:27 +03:00
alpha
arm acpi: make bios_linker_loader_add_checksum() API offset based 2016-06-07 15:39:27 +03:00
audio replace muldiv64(a, b, c) by (uint64_t)a * b / c 2016-06-07 18:02:49 +03:00
block block: Use DIV_ROUND_UP 2016-06-07 18:19:24 +03:00
bt bt: rewrite csrhci_write to avoid out-of-bounds writes 2016-05-29 09:11:11 +02:00
char hw/char: QOM'ify xilinx_uartlite model 2016-06-06 16:59:32 +01:00
core qdev: Clean up around properties 2016-06-07 18:19:23 +03:00
cpu
cris hw/char: QOM'ify etraxfs_ser.c 2016-05-29 09:11:10 +02:00
display virtio-gpu: add live migration support 2016-06-06 09:04:34 +02:00
dma
gpio
i2c i2c: add aspeed i2c controller 2016-06-06 16:59:29 +01:00
i386 all: Remove unnecessary glib.h includes 2016-06-07 18:19:24 +03:00
ide macio: use DMA memory interface for non-block ATAPI transfers 2016-06-07 10:17:45 +10:00
input
intc hw: Clean up includes 2016-06-07 18:19:23 +03:00
ipack
ipmi hw/ipmi: fix spelling 2016-06-07 18:02:48 +03:00
isa ICH9: fix typo 2016-06-07 18:19:23 +03:00
lm32 hw/char: QOM'ify milkymist-uart.c 2016-05-29 09:11:10 +02:00
m68k
mem pc-dimm: introduce realize callback 2016-06-07 15:39:28 +03:00
microblaze hw/char: QOM'ify xilinx_uartlite model 2016-06-06 16:59:32 +01:00
mips
misc dbdma: use DMA memory interface for memory accesses 2016-06-07 10:17:45 +10:00
moxie
net e1000: Removing unnecessary if statement 2016-06-07 18:19:23 +03:00
nvram fw_cfg: follow CODING_STYLE 2016-06-07 18:19:23 +03:00
openrisc
pci pcie: Introduce function for DSN capability creation 2016-06-02 10:42:26 +08:00
pci-bridge
pci-host
pcmcia
ppc ppc: Remove a potential overflow in muldiv64() 2016-06-07 18:02:49 +03:00
s390x s390x/virtio-ccw: fix spelling 2016-06-07 18:02:48 +03:00
scsi scsi-disk: fix reads from scsi-disk devices 2016-06-06 13:23:41 +01:00
sd
sh4
smbios
sparc
sparc64
ssi
timer hw: Clean up includes 2016-06-07 18:19:23 +03:00
tpm
tricore
unicore32
usb remove useless muldiv64() 2016-06-07 18:02:49 +03:00
vfio vfio: Check that IOMMU MR translates to system address space 2016-05-26 11:12:09 -06:00
virtio virtio: move bi-endian target support to a single location 2016-06-07 15:39:28 +03:00
watchdog nmi: remove x86 specific nmi handling 2016-05-23 16:53:46 +02:00
xen xen: write information about supported backends 2016-05-23 13:30:03 +02:00
xenpv xen: add pvUSB backend 2016-05-23 13:30:03 +02:00
xtensa replace muldiv64(a, b, c) by (uint64_t)a * b / c 2016-06-07 18:02:49 +03:00
Makefile.objs