From: Jens Axboe Date: Mon, 1 Jul 2019 20:09:23 +0000 (-0600) Subject: engines/rbd: hide rbd_io_u_seen() if not used X-Git-Tag: fio-3.15~4 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=c7cc1c75b801c5fce5dcf165c9b42e5f101be735 engines/rbd: hide rbd_io_u_seen() if not used Signed-off-by: Jens Axboe --- diff --git a/engines/rbd.c b/engines/rbd.c index 081b4a04..7d4d3faf 100644 --- a/engines/rbd.c +++ b/engines/rbd.c @@ -316,12 +316,14 @@ static inline int fri_check_complete(struct rbd_data *rbd, struct io_u *io_u, return 0; } +#ifndef CONFIG_RBD_POLL static inline int rbd_io_u_seen(struct io_u *io_u) { struct fio_rbd_iou *fri = io_u->engine_data; return fri->io_seen; } +#endif static void rbd_io_u_wait_complete(struct io_u *io_u) {