X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Ffio-engine-posixaio.c;h=260551a4ee8b506f9c1fa84cc30711bddf168255;hp=8cd3cf465998cb6fca2c961130f3e09d56d5114c;hb=7a16dd027f83d7ff8ff0e72bb6bb12fae046fcbf;hpb=0ab8db8943acc6b9ea778735563bfad2a79e8ddd diff --git a/engines/fio-engine-posixaio.c b/engines/fio-engine-posixaio.c index 8cd3cf46..260551a4 100644 --- a/engines/fio-engine-posixaio.c +++ b/engines/fio-engine-posixaio.c @@ -45,12 +45,14 @@ static unsigned long long ts_utime_since_now(struct timespec *t) return sec + nsec; } -static int fio_posixaio_sync(struct thread_data *td, struct fio_file *f) +static int fio_posixaio_sync(struct thread_data fio_unused *td, + struct fio_file *f) { return fsync(f->fd); } -static int fio_posixaio_cancel(struct thread_data *td, struct io_u *io_u) +static int fio_posixaio_cancel(struct thread_data fio_unused *td, + struct io_u *io_u) { struct fio_file *f = io_u->file; int r = aio_cancel(f->fd, &io_u->aiocb); @@ -61,7 +63,8 @@ static int fio_posixaio_cancel(struct thread_data *td, struct io_u *io_u) return 1; } -static int fio_posixaio_prep(struct thread_data *td, struct io_u *io_u) +static int fio_posixaio_prep(struct thread_data fio_unused *td, + struct io_u *io_u) { struct aiocb *aiocb = &io_u->aiocb; struct fio_file *f = io_u->file;