aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/sa.c
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-12-12 16:06:44 +0100
committerBrian Behlendorf <[email protected]>2021-12-23 09:42:47 -0800
commit14e4e3cb9f5f232c92b579a12f4cb0a427ed54bf (patch)
treeabe4c4a23c198ba8a84a7cec96dd1dc7370101ee /module/zfs/sa.c
parent868998220e64d3249744e7df141d07c6506548eb (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/sa.c')
-rw-r--r--module/zfs/sa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/zfs/sa.c b/module/zfs/sa.c
index 2604a7513..b69b0c68f 100644
--- a/module/zfs/sa.c
+++ b/module/zfs/sa.c
@@ -212,20 +212,20 @@ sa_attr_type_t sa_dummy_zpl_layout[] = { 0 };
static int sa_legacy_attr_count = ARRAY_SIZE(sa_legacy_attrs);
static kmem_cache_t *sa_cache = NULL;
-/*ARGSUSED*/
static int
sa_cache_constructor(void *buf, void *unused, int kmflag)
{
+ (void) unused, (void) kmflag;
sa_handle_t *hdl = buf;
mutex_init(&hdl->sa_lock, NULL, MUTEX_DEFAULT, NULL);
return (0);
}
-/*ARGSUSED*/
static void
sa_cache_destructor(void *buf, void *unused)
{
+ (void) unused;
sa_handle_t *hdl = buf;
mutex_destroy(&hdl->sa_lock);
}
@@ -1218,11 +1218,11 @@ sa_attr_iter(objset_t *os, sa_hdr_phys_t *hdr, dmu_object_type_t type,
}
}
-/*ARGSUSED*/
static void
sa_byteswap_cb(void *hdr, void *attr_addr, sa_attr_type_t attr,
uint16_t length, int length_idx, boolean_t variable_length, void *userp)
{
+ (void) hdr, (void) length_idx, (void) variable_length;
sa_handle_t *hdl = userp;
sa_os_t *sa = hdl->sa_os->os_sa;
@@ -1309,10 +1309,10 @@ sa_build_index(sa_handle_t *hdl, sa_buf_type_t buftype)
return (0);
}
-/*ARGSUSED*/
static void
sa_evict_sync(void *dbu)
{
+ (void) dbu;
panic("evicting sa dbuf\n");
}