aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
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 'lib')
-rw-r--r--lib/libnvpair/libnvpair.c4
-rw-r--r--lib/libnvpair/nvpair_alloc_system.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libnvpair/libnvpair.c b/lib/libnvpair/libnvpair.c
index fd43a44c1..0123bb772 100644
--- a/lib/libnvpair/libnvpair.c
+++ b/lib/libnvpair/libnvpair.c
@@ -253,11 +253,11 @@ NVLIST_ARRPRTFUNC(int64_array, int64_t, longlong_t, "%lld")
NVLIST_ARRPRTFUNC(uint64_array, uint64_t, u_longlong_t, "0x%llx")
NVLIST_ARRPRTFUNC(string_array, char *, char *, "%s")
-/*ARGSUSED*/
static int
nvprint_nvlist(nvlist_prtctl_t pctl, void *private,
nvlist_t *nvl, const char *name, nvlist_t *value)
{
+ (void) private, (void) nvl;
FILE *fp = pctl->nvprt_fp;
indent(pctl, 1);
@@ -273,11 +273,11 @@ nvprint_nvlist(nvlist_prtctl_t pctl, void *private,
return (1);
}
-/*ARGSUSED*/
static int
nvaprint_nvlist_array(nvlist_prtctl_t pctl, void *private,
nvlist_t *nvl, const char *name, nvlist_t **valuep, uint_t count)
{
+ (void) private, (void) nvl;
FILE *fp = pctl->nvprt_fp;
uint_t i;
diff --git a/lib/libnvpair/nvpair_alloc_system.c b/lib/libnvpair/nvpair_alloc_system.c
index 54dde1ee6..9771f58f6 100644
--- a/lib/libnvpair/nvpair_alloc_system.c
+++ b/lib/libnvpair/nvpair_alloc_system.c
@@ -36,10 +36,10 @@ nv_alloc_sys(nv_alloc_t *nva, size_t size)
return (kmem_alloc(size, (int)(uintptr_t)nva->nva_arg));
}
-/*ARGSUSED*/
static void
nv_free_sys(nv_alloc_t *nva, void *buf, size_t size)
{
+ (void) nva;
kmem_free(buf, size);
}