X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fnull.c;h=4cc0102b993e64a01e5f1804ea6a6ccfe7951a36;hb=5fff95436922873dd9ded8b21af7222689e2ec5d;hp=0cfc22ad9e04d72ac8b1cc64e0b7fc958a4b2bdf;hpb=ca65714c48bcd4fc601e3c04163e2422352be9ca;p=fio.git diff --git a/engines/null.c b/engines/null.c index 0cfc22ad..4cc0102b 100644 --- a/engines/null.c +++ b/engines/null.c @@ -13,10 +13,7 @@ * LD_LIBRARY_PATH=./engines ./fio examples/cpp_null.fio * */ -#include #include -#include -#include #include #include "../fio.h" @@ -59,8 +56,8 @@ static int null_commit(struct thread_data *td, struct null_data *nd) return 0; } -static int null_queue(struct thread_data *td, struct null_data *nd, - struct io_u *io_u) +static enum fio_q_status null_queue(struct thread_data *td, + struct null_data *nd, struct io_u *io_u) { fio_ro_check(td, io_u); @@ -121,7 +118,8 @@ static int fio_null_commit(struct thread_data *td) return null_commit(td, td->io_ops_data); } -static int fio_null_queue(struct thread_data *td, struct io_u *io_u) +static enum fio_q_status fio_null_queue(struct thread_data *td, + struct io_u *io_u) { return null_queue(td, td->io_ops_data, io_u); }