aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzpool/taskq.c
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-12-12 16:01:06 +0100
committerBrian Behlendorf <[email protected]>2021-12-23 09:42:47 -0800
commit56050599c924cb30099dfe05afabc07b4fa271f0 (patch)
tree113bb027faacaf5664238462c075b213ad46e0bb /lib/libzpool/taskq.c
parent57bff80ebff91ea63237ca38ca337013c1fa4c40 (diff)
libzpool: fix unused, remove argsused
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12844
Diffstat (limited to 'lib/libzpool/taskq.c')
-rw-r--r--lib/libzpool/taskq.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libzpool/taskq.c b/lib/libzpool/taskq.c
index 456080f7f..8a6113091 100644
--- a/lib/libzpool/taskq.c
+++ b/lib/libzpool/taskq.c
@@ -134,9 +134,10 @@ taskq_dispatch(taskq_t *tq, task_func_t func, void *arg, uint_t tqflags)
}
taskqid_t
-taskq_dispatch_delay(taskq_t *tq, task_func_t func, void *arg, uint_t tqflags,
+taskq_dispatch_delay(taskq_t *tq, task_func_t func, void *arg, uint_t tqflags,
clock_t expire_time)
{
+ (void) tq, (void) func, (void) arg, (void) tqflags, (void) expire_time;
return (0);
}
@@ -199,12 +200,14 @@ taskq_wait(taskq_t *tq)
void
taskq_wait_id(taskq_t *tq, taskqid_t id)
{
+ (void) id;
taskq_wait(tq);
}
void
taskq_wait_outstanding(taskq_t *tq, taskqid_t id)
{
+ (void) id;
taskq_wait(tq);
}
@@ -247,11 +250,11 @@ taskq_thread(void *arg)
thread_exit();
}
-/*ARGSUSED*/
taskq_t *
taskq_create(const char *name, int nthreads, pri_t pri,
int minalloc, int maxalloc, uint_t flags)
{
+ (void) pri;
taskq_t *tq = kmem_zalloc(sizeof (taskq_t), KM_SLEEP);
int t;
@@ -356,6 +359,7 @@ taskq_of_curthread(void)
int
taskq_cancel_id(taskq_t *tq, taskqid_t id)
{
+ (void) tq, (void) id;
return (ENOENT);
}