aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzpool/util.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/util.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/util.c')
-rw-r--r--lib/libzpool/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libzpool/util.c b/lib/libzpool/util.c
index a2bdfec1d..b9ee52a61 100644
--- a/lib/libzpool/util.c
+++ b/lib/libzpool/util.c
@@ -242,6 +242,7 @@ out_ret:
static nvlist_t *
refresh_config(void *unused, nvlist_t *tryconfig)
{
+ (void) unused;
return (spa_tryimport(tryconfig));
}
@@ -254,6 +255,7 @@ refresh_config(void *unused, nvlist_t *tryconfig)
static int
pool_active(void *unused, const char *name, uint64_t guid, boolean_t *isactive)
{
+ (void) unused, (void) guid;
zfs_iocparm_t zp;
zfs_cmd_t *zc = NULL;
zfs_cmd_legacy_t *zcl = NULL;
@@ -322,6 +324,7 @@ static int
pool_active(void *unused, const char *name, uint64_t guid,
boolean_t *isactive)
{
+ (void) unused, (void) guid;
int fd = open(ZFS_DEV, O_RDWR | O_CLOEXEC);
if (fd < 0)
return (-1);