Skip to content

Commit

Permalink
zpool: vdev_os: fix unused, remove argsused
Browse files Browse the repository at this point in the history
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#12835
  • Loading branch information
nabijaczleweli authored and nicman23 committed Aug 22, 2022
1 parent c55a32b commit d4293ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/zpool/os/freebsd/zpool_vdev_os.c
Expand Up @@ -86,6 +86,7 @@ int
check_device(const char *name, boolean_t force, boolean_t isspare,
boolean_t iswholedisk)
{
(void) iswholedisk;
char path[MAXPATHLEN];

if (strncmp(name, _PATH_DEV, sizeof (_PATH_DEV) - 1) != 0)
Expand All @@ -99,6 +100,7 @@ check_device(const char *name, boolean_t force, boolean_t isspare,
boolean_t
check_sector_size_database(char *path, int *sector_size)
{
(void) path, (void) sector_size;
return (0);
}

Expand Down
1 change: 1 addition & 0 deletions cmd/zpool/os/linux/zpool_vdev_os.c
Expand Up @@ -409,6 +409,7 @@ check_device(const char *path, boolean_t force,
void
after_zpool_upgrade(zpool_handle_t *zhp)
{
(void) zhp;
}

int
Expand Down

0 comments on commit d4293ac

Please sign in to comment.