qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

coccinelle: use macro DIV_ROUND_UP instead of (((n) + (d) - 1) /(d))

sample from http://coccinellery.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>

authored by

Laurent Vivier and committed by
Michael Tokarev
db718b4b e0ca2ed5

+19
+19
scripts/coccinelle/round.cocci
··· 1 + // Use macro DIV_ROUND_UP instead of (((n) + (d) - 1) /(d)) 2 + @@ 3 + expression e1; 4 + expression e2; 5 + @@ 6 + ( 7 + - ((e1) + e2 - 1) / (e2) 8 + + DIV_ROUND_UP(e1,e2) 9 + | 10 + - ((e1) + (e2 - 1)) / (e2) 11 + + DIV_ROUND_UP(e1,e2) 12 + ) 13 + 14 + @@ 15 + expression e1; 16 + expression e2; 17 + @@ 18 + -(DIV_ROUND_UP(e1,e2)) 19 + +DIV_ROUND_UP(e1,e2)