userspace: mark arguments used
Reviewed-by: Alejandro Colomar <alx.manpages@gmail.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13110
This commit is contained in:
parent
ef70eff198
commit
46c7a80280
|
@ -751,6 +751,8 @@ note_dev_error(int err, int fd)
|
|||
"(As a workaround, "
|
||||
"try \"zfs send [...] | cat > /dev/null\")\n"));
|
||||
}
|
||||
#else
|
||||
(void) err, (void) fd;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
static void
|
||||
pam_syslog(pam_handle_t *pamh, int loglevel, const char *fmt, ...)
|
||||
{
|
||||
(void) pamh;
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
vsyslog(loglevel, fmt, args);
|
||||
|
|
|
@ -155,6 +155,7 @@ nfs_is_shared(sa_share_impl_t impl_share)
|
|||
static int
|
||||
nfs_validate_shareopts(const char *shareopts)
|
||||
{
|
||||
(void) shareopts;
|
||||
return (SA_OK);
|
||||
}
|
||||
|
||||
|
|
|
@ -47,6 +47,7 @@ static sa_fstype_t *smb_fstype;
|
|||
static int
|
||||
smb_enable_share(sa_share_impl_t impl_share)
|
||||
{
|
||||
(void) impl_share;
|
||||
fprintf(stderr, "No SMB support in FreeBSD yet.\n");
|
||||
return (SA_NOT_SUPPORTED);
|
||||
}
|
||||
|
@ -56,6 +57,7 @@ smb_enable_share(sa_share_impl_t impl_share)
|
|||
static int
|
||||
smb_disable_share(sa_share_impl_t impl_share)
|
||||
{
|
||||
(void) impl_share;
|
||||
fprintf(stderr, "No SMB support in FreeBSD yet.\n");
|
||||
return (SA_NOT_SUPPORTED);
|
||||
}
|
||||
|
@ -66,6 +68,7 @@ smb_disable_share(sa_share_impl_t impl_share)
|
|||
static int
|
||||
smb_validate_shareopts(const char *shareopts)
|
||||
{
|
||||
(void) shareopts;
|
||||
fprintf(stderr, "No SMB support in FreeBSD yet.\n");
|
||||
return (SA_NOT_SUPPORTED);
|
||||
}
|
||||
|
@ -76,6 +79,7 @@ smb_validate_shareopts(const char *shareopts)
|
|||
static boolean_t
|
||||
smb_is_share_active(sa_share_impl_t impl_share)
|
||||
{
|
||||
(void) impl_share;
|
||||
return (B_FALSE);
|
||||
}
|
||||
|
||||
|
@ -88,6 +92,7 @@ smb_is_share_active(sa_share_impl_t impl_share)
|
|||
static int
|
||||
smb_update_shareopts(sa_share_impl_t impl_share, const char *shareopts)
|
||||
{
|
||||
(void) impl_share, (void) shareopts;
|
||||
return (SA_OK);
|
||||
}
|
||||
|
||||
|
|
|
@ -468,6 +468,7 @@ zfs_avx512vbmi_available(void)
|
|||
static jmp_buf env;
|
||||
static void sigillhandler(int x)
|
||||
{
|
||||
(void) x;
|
||||
longjmp(env, 1);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -42,6 +42,7 @@ void
|
|||
libzfs_set_pipe_max(int infd)
|
||||
{
|
||||
/* FreeBSD automatically resizes */
|
||||
(void) infd;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -251,24 +252,28 @@ libzfs_load_module(void)
|
|||
int
|
||||
zpool_relabel_disk(libzfs_handle_t *hdl, const char *path, const char *msg)
|
||||
{
|
||||
(void) hdl, (void) path, (void) msg;
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name)
|
||||
{
|
||||
(void) hdl, (void) zhp, (void) name;
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
find_shares_object(differ_info_t *di)
|
||||
{
|
||||
(void) di;
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
zfs_destroy_snaps_nvl_os(libzfs_handle_t *hdl, nvlist_t *snaps)
|
||||
{
|
||||
(void) hdl, (void) snaps;
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue