From 9973b0f961a57c19f885ffca05f86ae6ef85f8c7 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 8 Aug 2016 11:32:34 -0600 Subject: [PATCH 1/1] iolog: silence warning on pointer cast on 32-bit compiles Signed-off-by: Jens Axboe --- iolog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iolog.c b/iolog.c index 8a216b25..975ce6f7 100644 --- a/iolog.c +++ b/iolog.c @@ -692,7 +692,7 @@ void flush_hist_samples(FILE *f, int hist_coarseness, void *samples, for (i = 0; i < nr_samples; i++) { s = __get_sample(samples, log_offset, i); - io_u_plat = (unsigned int *) s->val; + io_u_plat = (unsigned int *) (uintptr_t) s->val; fprintf(f, "%lu, %u, %u, ", (unsigned long)s->time, io_sample_ddir(s), s->bs); for (j = 0; j < FIO_IO_U_PLAT_NR - stride; j += stride) { -- 2.25.1