->getevents() should take unsigned args
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/engines/guasi.c b/engines/guasi.c
index 69b2cd2..e0bcaf4 100644
--- a/engines/guasi.c
+++ b/engines/guasi.c
@@ -86,8 +86,8 @@
return io_u;
}
-static int fio_guasi_getevents(struct thread_data *td, int min, int max,
- struct timespec *t)
+static int fio_guasi_getevents(struct thread_data *td, unsigned int min,
+ unsigned int max, struct timespec *t)
{
struct guasi_data *ld = td->io_ops->data;
int n, r;
diff --git a/engines/libaio.c b/engines/libaio.c
index 8f67711..29eac20 100644
--- a/engines/libaio.c
+++ b/engines/libaio.c
@@ -60,8 +60,8 @@
return io_u;
}
-static int fio_libaio_getevents(struct thread_data *td, int min, int max,
- struct timespec *t)
+static int fio_libaio_getevents(struct thread_data *td, unsigned int min,
+ unsigned int max, struct timespec *t)
{
struct libaio_data *ld = td->io_ops->data;
long r;
diff --git a/engines/null.c b/engines/null.c
index bbb4e8a..85d6847 100644
--- a/engines/null.c
+++ b/engines/null.c
@@ -26,8 +26,9 @@
return nd->io_us[event];
}
-static int fio_null_getevents(struct thread_data *td, int min_events,
- int fio_unused max, struct timespec fio_unused *t)
+static int fio_null_getevents(struct thread_data *td, unsigned int min_events,
+ unsigned int fio_unused max,
+ struct timespec fio_unused *t)
{
struct null_data *nd = td->io_ops->data;
int ret = 0;
diff --git a/engines/posixaio.c b/engines/posixaio.c
index 9ff05c4..65a88e9 100644
--- a/engines/posixaio.c
+++ b/engines/posixaio.c
@@ -76,8 +76,8 @@
return 0;
}
-static int fio_posixaio_getevents(struct thread_data *td, int min, int max,
- struct timespec *t)
+static int fio_posixaio_getevents(struct thread_data *td, unsigned int min,
+ unsigned int max, struct timespec *t)
{
struct posixaio_data *pd = td->io_ops->data;
struct list_head *entry;
diff --git a/engines/sg.c b/engines/sg.c
index 790019e..a9ff93a 100644
--- a/engines/sg.c
+++ b/engines/sg.c
@@ -61,8 +61,8 @@
return 0;
}
-static int fio_sgio_getevents(struct thread_data *td, int min, int max,
- struct timespec fio_unused *t)
+static int fio_sgio_getevents(struct thread_data *td, unsigned int min,
+ unsigned int max, struct timespec fio_unused *t)
{
struct sgio_data *sd = td->io_ops->data;
int left = max, ret, r = 0;
diff --git a/engines/skeleton_external.c b/engines/skeleton_external.c
index 26dbedf..dec258c 100644
--- a/engines/skeleton_external.c
+++ b/engines/skeleton_external.c
@@ -37,8 +37,8 @@
* which may then be retrieved by calling the ->event() hook with the event
* numbers. Required.
*/
-static int fio_skeleton_getevents(struct thread_data *td, int min, int max,
- struct timespec *t)
+static int fio_skeleton_getevents(struct thread_data *td, unsigned int min,
+ unsigned int max, struct timespec *t)
{
return 0;
}
diff --git a/engines/syslet-rw.c b/engines/syslet-rw.c
index e4ccb95..8f2c415 100644
--- a/engines/syslet-rw.c
+++ b/engines/syslet-rw.c
@@ -99,8 +99,8 @@
} while (1);
}
-static int fio_syslet_getevents(struct thread_data *td, int min,
- int fio_unused max,
+static int fio_syslet_getevents(struct thread_data *td, unsigned int min,
+ unsigned int fio_unused max,
struct timespec fio_unused *t)
{
struct syslet_data *sd = td->io_ops->data;