From 14e4e3cb9f5f232c92b579a12f4cb0a427ed54bf Mon Sep 17 00:00:00 2001 From: наб Date: Sun, 12 Dec 2021 16:06:44 +0100 Subject: module: zfs: fix unused, remove argsused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia Ziemiańska Closes #12844 --- module/zfs/zio_compress.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'module/zfs/zio_compress.c') 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) -- cgit v1.2.3