diff options
author | наб <[email protected]> | 2021-12-12 16:06:44 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-12-23 09:42:47 -0800 |
commit | 14e4e3cb9f5f232c92b579a12f4cb0a427ed54bf (patch) | |
tree | abe4c4a23c198ba8a84a7cec96dd1dc7370101ee /module/zfs/zio_compress.c | |
parent | 868998220e64d3249744e7df141d07c6506548eb (diff) |
module: zfs: fix unused, remove argsused
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12844
Diffstat (limited to 'module/zfs/zio_compress.c')
-rw-r--r-- | module/zfs/zio_compress.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/zfs/zio_compress.c b/module/zfs/zio_compress.c index 1ff1e76d7..cded11f4c 100644 --- a/module/zfs/zio_compress.c +++ b/module/zfs/zio_compress.c @@ -74,6 +74,7 @@ uint8_t zio_complevel_select(spa_t *spa, enum zio_compress compress, uint8_t child, uint8_t parent) { + (void) spa; uint8_t result; if (!ZIO_COMPRESS_HASLEVEL(compress)) @@ -110,10 +111,11 @@ zio_compress_select(spa_t *spa, enum zio_compress child, return (result); } -/*ARGSUSED*/ static int zio_compress_zeroed_cb(void *data, size_t len, void *private) { + (void) private; + uint64_t *end = (uint64_t *)((char *)data + len); for (uint64_t *word = (uint64_t *)data; word < end; word++) if (*word != 0) |