io_u: don't use void* for pointer arithmetic (gcc)
authorTomohiro Kusumi <tkusumi@tuxera.com>
Fri, 23 Jun 2017 22:07:57 +0000 (01:07 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Jun 2017 22:19:53 +0000 (16:19 -0600)
I think gcc extension should be avoided when it can be done by
just changing a pointer type.

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_u.c

diff --git a/io_u.c b/io_u.c
index 375413f4b6d230e38432484179327736ae2de060..8d42d6541f7dbb9592639619874295153101bd91 100644 (file)
--- 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;