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:
наб 2022-02-16 13:09:27 +01:00 committed by Brian Behlendorf
parent ef70eff198
commit 46c7a80280
6 changed files with 15 additions and 0 deletions

View File

@ -751,6 +751,8 @@ note_dev_error(int err, int fd)
"(As a workaround, " "(As a workaround, "
"try \"zfs send [...] | cat > /dev/null\")\n")); "try \"zfs send [...] | cat > /dev/null\")\n"));
} }
#else
(void) err, (void) fd;
#endif #endif
} }

View File

@ -47,6 +47,7 @@
static void static void
pam_syslog(pam_handle_t *pamh, int loglevel, const char *fmt, ...) pam_syslog(pam_handle_t *pamh, int loglevel, const char *fmt, ...)
{ {
(void) pamh;
va_list args; va_list args;
va_start(args, fmt); va_start(args, fmt);
vsyslog(loglevel, fmt, args); vsyslog(loglevel, fmt, args);

View File

@ -155,6 +155,7 @@ nfs_is_shared(sa_share_impl_t impl_share)
static int static int
nfs_validate_shareopts(const char *shareopts) nfs_validate_shareopts(const char *shareopts)
{ {
(void) shareopts;
return (SA_OK); return (SA_OK);
} }

View File

@ -47,6 +47,7 @@ static sa_fstype_t *smb_fstype;
static int static int
smb_enable_share(sa_share_impl_t impl_share) smb_enable_share(sa_share_impl_t impl_share)
{ {
(void) impl_share;
fprintf(stderr, "No SMB support in FreeBSD yet.\n"); fprintf(stderr, "No SMB support in FreeBSD yet.\n");
return (SA_NOT_SUPPORTED); return (SA_NOT_SUPPORTED);
} }
@ -56,6 +57,7 @@ smb_enable_share(sa_share_impl_t impl_share)
static int static int
smb_disable_share(sa_share_impl_t impl_share) smb_disable_share(sa_share_impl_t impl_share)
{ {
(void) impl_share;
fprintf(stderr, "No SMB support in FreeBSD yet.\n"); fprintf(stderr, "No SMB support in FreeBSD yet.\n");
return (SA_NOT_SUPPORTED); return (SA_NOT_SUPPORTED);
} }
@ -66,6 +68,7 @@ smb_disable_share(sa_share_impl_t impl_share)
static int static int
smb_validate_shareopts(const char *shareopts) smb_validate_shareopts(const char *shareopts)
{ {
(void) shareopts;
fprintf(stderr, "No SMB support in FreeBSD yet.\n"); fprintf(stderr, "No SMB support in FreeBSD yet.\n");
return (SA_NOT_SUPPORTED); return (SA_NOT_SUPPORTED);
} }
@ -76,6 +79,7 @@ smb_validate_shareopts(const char *shareopts)
static boolean_t static boolean_t
smb_is_share_active(sa_share_impl_t impl_share) smb_is_share_active(sa_share_impl_t impl_share)
{ {
(void) impl_share;
return (B_FALSE); return (B_FALSE);
} }
@ -88,6 +92,7 @@ smb_is_share_active(sa_share_impl_t impl_share)
static int static int
smb_update_shareopts(sa_share_impl_t impl_share, const char *shareopts) smb_update_shareopts(sa_share_impl_t impl_share, const char *shareopts)
{ {
(void) impl_share, (void) shareopts;
return (SA_OK); return (SA_OK);
} }

View File

@ -468,6 +468,7 @@ zfs_avx512vbmi_available(void)
static jmp_buf env; static jmp_buf env;
static void sigillhandler(int x) static void sigillhandler(int x)
{ {
(void) x;
longjmp(env, 1); longjmp(env, 1);
} }
#endif #endif

View File

@ -42,6 +42,7 @@ void
libzfs_set_pipe_max(int infd) libzfs_set_pipe_max(int infd)
{ {
/* FreeBSD automatically resizes */ /* FreeBSD automatically resizes */
(void) infd;
} }
static int static int
@ -251,24 +252,28 @@ libzfs_load_module(void)
int int
zpool_relabel_disk(libzfs_handle_t *hdl, const char *path, const char *msg) zpool_relabel_disk(libzfs_handle_t *hdl, const char *path, const char *msg)
{ {
(void) hdl, (void) path, (void) msg;
return (0); return (0);
} }
int int
zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name)
{ {
(void) hdl, (void) zhp, (void) name;
return (0); return (0);
} }
int int
find_shares_object(differ_info_t *di) find_shares_object(differ_info_t *di)
{ {
(void) di;
return (0); return (0);
} }
int int
zfs_destroy_snaps_nvl_os(libzfs_handle_t *hdl, nvlist_t *snaps) zfs_destroy_snaps_nvl_os(libzfs_handle_t *hdl, nvlist_t *snaps)
{ {
(void) hdl, (void) snaps;
return (0); return (0);
} }