From: Tomohiro Kusumi Date: Fri, 23 Jun 2017 22:07:57 +0000 (+0300) Subject: io_u: don't use void* for pointer arithmetic (gcc) X-Git-Tag: fio-2.99~62 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=fe8d7feef3bf53e14d794975e8943f63e848fb36;hp=0f836f393f6b2535feb4175a8a1f6d2af3da95ad io_u: don't use void* for pointer arithmetic (gcc) I think gcc extension should be avoided when it can be done by just changing a pointer type. Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index 375413f4..8d42d654 100644 --- a/io_u.c +++ b/io_u.c @@ -1602,7 +1602,7 @@ static void small_content_scramble(struct io_u *io_u) unsigned int i, nr_blocks = io_u->buflen / 512; uint64_t boffset; unsigned int offset; - void *p, *end; + char *p, *end; if (!nr_blocks) return;