aboutsummaryrefslogtreecommitdiffstats
path: root/module/nvpair
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-12-12 15:16:19 +0100
committerBrian Behlendorf <[email protected]>2021-12-23 09:42:47 -0800
commit0cad373e5c9daa99c8b8063f17b630782d868ee0 (patch)
treec1a1bad1103113ad9be67dfcba9c73a396ab2b1f /module/nvpair
parent9028f99a7949f44180931524ee366c136e01003b (diff)
libnvpair: fix unused, remove argsused
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12844
Diffstat (limited to 'module/nvpair')
-rw-r--r--module/nvpair/fnvpair.c2
-rw-r--r--module/nvpair/nvpair.c6
-rw-r--r--module/nvpair/nvpair_alloc_fixed.c2
3 files changed, 6 insertions, 4 deletions
diff --git a/module/nvpair/fnvpair.c b/module/nvpair/fnvpair.c
index 3a4f07486..43c4b7359 100644
--- a/module/nvpair/fnvpair.c
+++ b/module/nvpair/fnvpair.c
@@ -82,13 +82,13 @@ fnvlist_pack(nvlist_t *nvl, size_t *sizep)
return (packed);
}
-/*ARGSUSED*/
void
fnvlist_pack_free(char *pack, size_t size)
{
#ifdef _KERNEL
kmem_free(pack, size);
#else
+ (void) size;
free(pack);
#endif
}
diff --git a/module/nvpair/nvpair.c b/module/nvpair/nvpair.c
index 668e4a978..8230cca20 100644
--- a/module/nvpair/nvpair.c
+++ b/module/nvpair/nvpair.c
@@ -576,6 +576,7 @@ nvlist_nv_alloc(int kmflag)
return (nv_alloc_pushpage);
}
#else
+ (void) kmflag;
return (nv_alloc_nosleep);
#endif /* _KERNEL */
}
@@ -2296,10 +2297,11 @@ nvlist_add_nvpair(nvlist_t *nvl, nvpair_t *nvp)
* the values are taken from nvl in the case of duplicates.
* Return 0 on success.
*/
-/*ARGSUSED*/
int
nvlist_merge(nvlist_t *dst, nvlist_t *nvl, int flag)
{
+ (void) flag;
+
if (nvl == NULL || dst == NULL)
return (EINVAL);
@@ -2803,10 +2805,10 @@ nvs_native_create(nvstream_t *nvs, nvs_native_t *native, char *buf,
}
}
-/*ARGSUSED*/
static void
nvs_native_destroy(nvstream_t *nvs)
{
+ (void) nvs;
}
static int
diff --git a/module/nvpair/nvpair_alloc_fixed.c b/module/nvpair/nvpair_alloc_fixed.c
index c8a604a2b..ca3f68676 100644
--- a/module/nvpair/nvpair_alloc_fixed.c
+++ b/module/nvpair/nvpair_alloc_fixed.c
@@ -85,11 +85,11 @@ nv_fixed_alloc(nv_alloc_t *nva, size_t size)
return ((void *)new);
}
-/*ARGSUSED*/
static void
nv_fixed_free(nv_alloc_t *nva, void *buf, size_t size)
{
/* don't free memory in the pre-allocated buffer */
+ (void) nva, (void) buf, (void) size;
}
static void