aboutsummaryrefslogtreecommitdiff
path: root/module/zfs/abd.c
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2021-12-12 15:06:44 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2021-12-23 17:42:47 +0000
commit14e4e3cb9f5f232c92b579a12f4cb0a427ed54bf (patch)
treeabe4c4a23c198ba8a84a7cec96dd1dc7370101ee /module/zfs/abd.c
parent868998220e64d3249744e7df141d07c6506548eb (diff)
downloadsrc-14e4e3cb9f5f232c92b579a12f4cb0a427ed54bf.tar.gz
src-14e4e3cb9f5f232c92b579a12f4cb0a427ed54bf.zip
module: zfs: fix unused, remove argsused
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12844
Diffstat (limited to 'module/zfs/abd.c')
-rw-r--r--module/zfs/abd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/zfs/abd.c b/module/zfs/abd.c
index bf39cd613330..8ee8e7e57420 100644
--- a/module/zfs/abd.c
+++ b/module/zfs/abd.c
@@ -889,10 +889,10 @@ abd_copy_from_buf_off(abd_t *abd, const void *buf, size_t off, size_t size)
&ba_ptr);
}
-/*ARGSUSED*/
static int
abd_zero_off_cb(void *buf, size_t size, void *private)
{
+ (void) private;
(void) memset(buf, 0, size);
return (0);
}
@@ -967,10 +967,10 @@ abd_iterate_func2(abd_t *dabd, abd_t *sabd, size_t doff, size_t soff,
return (ret);
}
-/*ARGSUSED*/
static int
abd_copy_off_cb(void *dbuf, void *sbuf, size_t size, void *private)
{
+ (void) private;
(void) memcpy(dbuf, sbuf, size);
return (0);
}
@@ -985,10 +985,10 @@ abd_copy_off(abd_t *dabd, abd_t *sabd, size_t doff, size_t soff, size_t size)
abd_copy_off_cb, NULL);
}
-/*ARGSUSED*/
static int
abd_cmp_cb(void *bufa, void *bufb, size_t size, void *private)
{
+ (void) private;
return (memcmp(bufa, bufb, size));
}