From: Jens Axboe Date: Tue, 2 Aug 2016 21:23:43 +0000 (-0600) Subject: engines/rbd: fix compile without blkin support X-Git-Tag: fio-2.14~65 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=550beaad94a11beef70dfb4057797ff8800c8a72;p=fio.git engines/rbd: fix compile without blkin support If we don't have rbd-blkin support, compile fails with: engines/rbd.c:21:26: error: field ‘info’ has incomplete type struct blkin_trace_info info; ^~~~ Makefile:313: recipe for target 'engines/rbd.o' failed Hide 'info' behind the ifdef. Fixes: a4c4c3460bd5 ("Add support for blkin tracing in rbd engine") Signed-off-by: Jens Axboe --- diff --git a/engines/rbd.c b/engines/rbd.c index b319315f..5e17fbe7 100644 --- a/engines/rbd.c +++ b/engines/rbd.c @@ -18,7 +18,9 @@ struct fio_rbd_iou { rbd_completion_t completion; int io_seen; int io_complete; +#ifdef CONFIG_RBD_BLKIN struct blkin_trace_info info; +#endif }; struct rbd_data {