Skip to content

Commit

Permalink
t/z_diff/socket, zfs: main: fix unused argument warnings, ARGSUSED tags
Browse files Browse the repository at this point in the history
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Rich Ercolani <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12829
  • Loading branch information
nabijaczleweli authored and behlendorf committed Dec 13, 2021
1 parent b7ef234 commit f291fa6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
13 changes: 5 additions & 8 deletions cmd/zfs/zfs_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3760,7 +3760,6 @@ zfs_do_list(int argc, char **argv)
* The '-p' flag creates all the non-existing ancestors of the target first.
* The '-u' flag prevents file systems from being remounted during rename.
*/
/* ARGSUSED */
static int
zfs_do_rename(int argc, char **argv)
{
Expand Down Expand Up @@ -3859,7 +3858,6 @@ zfs_do_rename(int argc, char **argv)
*
* Promotes the given clone fs to be the parent
*/
/* ARGSUSED */
static int
zfs_do_promote(int argc, char **argv)
{
Expand Down Expand Up @@ -5095,10 +5093,10 @@ who_type2weight(zfs_deleg_who_type_t who_type)
return (res);
}

/* ARGSUSED */
static int
who_perm_compare(const void *larg, const void *rarg, void *unused)
{
(void) unused;
const who_perm_node_t *l = larg;
const who_perm_node_t *r = rarg;
zfs_deleg_who_type_t ltype = l->who_perm.who_type;
Expand All @@ -5118,10 +5116,10 @@ who_perm_compare(const void *larg, const void *rarg, void *unused)
return (-1);
}

/* ARGSUSED */
static int
deleg_perm_compare(const void *larg, const void *rarg, void *unused)
{
(void) unused;
const deleg_perm_node_t *l = larg;
const deleg_perm_node_t *r = rarg;
int res = strncmp(l->dpn_perm.dp_name, r->dpn_perm.dp_name,
Expand Down Expand Up @@ -7210,10 +7208,10 @@ typedef struct unshare_unmount_node {
uu_avl_node_t un_avlnode;
} unshare_unmount_node_t;

/* ARGSUSED */
static int
unshare_unmount_compare(const void *larg, const void *rarg, void *unused)
{
(void) unused;
const unshare_unmount_node_t *l = larg;
const unshare_unmount_node_t *r = rarg;

Expand Down Expand Up @@ -8614,6 +8612,8 @@ zfs_do_wait(int argc, char **argv)
static int
zfs_do_version(int argc, char **argv)
{
(void) argc, (void) argv;

if (zfs_version_print() == -1)
return (1);

Expand Down Expand Up @@ -8738,7 +8738,6 @@ main(int argc, char **argv)
/*
* Attach/detach the given dataset to/from the given jail
*/
/* ARGSUSED */
static int
zfs_do_jail_impl(int argc, char **argv, boolean_t attach)
{
Expand Down Expand Up @@ -8776,7 +8775,6 @@ zfs_do_jail_impl(int argc, char **argv, boolean_t attach)
*
* Attach the given dataset to the given jail
*/
/* ARGSUSED */
static int
zfs_do_jail(int argc, char **argv)
{
Expand All @@ -8788,7 +8786,6 @@ zfs_do_jail(int argc, char **argv)
*
* Detach the given dataset from the given jail
*/
/* ARGSUSED */
static int
zfs_do_unjail(int argc, char **argv)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <stdlib.h>
#include <string.h>

/* ARGSUSED */
int
main(int argc, char *argv[])
{
Expand Down

0 comments on commit f291fa6

Please sign in to comment.