libzutil: import: fix unused, remove argsused

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12844
This commit is contained in:
наб 2021-12-12 15:34:00 +01:00 committed by Brian Behlendorf
parent 56050599c9
commit 9028f99a79
5 changed files with 10 additions and 5 deletions

View File

@ -124,9 +124,9 @@ zpool_label_disk_wait(const char *path, int timeout_ms)
return (ENODEV); return (ENODEV);
} }
/* ARGSUSED */
boolean_t boolean_t
is_mpath_whole_disk(const char *path) is_mpath_whole_disk(const char *path)
{ {
(void) path;
return (B_FALSE); return (B_FALSE);
} }

View File

@ -243,12 +243,14 @@ zpool_find_import_blkid(libpc_handle_t *hdl, pthread_mutex_t *lock,
} }
int int
zfs_dev_flush(int fd __unused) zfs_dev_flush(int fd)
{ {
(void) fd;
return (0); return (0);
} }
void void
update_vdevs_config_dev_sysfs_path(nvlist_t *config) update_vdevs_config_dev_sysfs_path(nvlist_t *config)
{ {
(void) config;
} }

View File

@ -668,10 +668,10 @@ is_mpath_whole_disk(const char *path)
#else /* HAVE_LIBUDEV */ #else /* HAVE_LIBUDEV */
/* ARGSUSED */
boolean_t boolean_t
is_mpath_whole_disk(const char *path) is_mpath_whole_disk(const char *path)
{ {
(void) path;
return (B_FALSE); return (B_FALSE);
} }

View File

@ -560,17 +560,17 @@ udev_device_is_ready(struct udev_device *dev)
#else #else
/* ARGSUSED */
int int
zfs_device_get_devid(struct udev_device *dev, char *bufptr, size_t buflen) zfs_device_get_devid(struct udev_device *dev, char *bufptr, size_t buflen)
{ {
(void) dev, (void) bufptr, (void) buflen;
return (ENODATA); return (ENODATA);
} }
/* ARGSUSED */
int int
zfs_device_get_physical(struct udev_device *dev, char *bufptr, size_t buflen) zfs_device_get_physical(struct udev_device *dev, char *bufptr, size_t buflen)
{ {
(void) dev, (void) bufptr, (void) buflen;
return (ENODATA); return (ENODATA);
} }
@ -788,6 +788,8 @@ update_vdev_config_dev_sysfs_path(nvlist_t *nv, char *path)
static int static int
sysfs_path_pool_vdev_iter_f(void *hdl_data, nvlist_t *nv, void *data) sysfs_path_pool_vdev_iter_f(void *hdl_data, nvlist_t *nv, void *data)
{ {
(void) hdl_data, (void) data;
char *path = NULL; char *path = NULL;
if (nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path) != 0) if (nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path) != 0)
return (1); return (1);

View File

@ -1393,6 +1393,7 @@ static nvlist_t *
zpool_find_import_impl(libpc_handle_t *hdl, importargs_t *iarg, zpool_find_import_impl(libpc_handle_t *hdl, importargs_t *iarg,
pthread_mutex_t *lock, avl_tree_t *cache) pthread_mutex_t *lock, avl_tree_t *cache)
{ {
(void) lock;
nvlist_t *ret = NULL; nvlist_t *ret = NULL;
pool_list_t pools = { 0 }; pool_list_t pools = { 0 };
pool_entry_t *pe, *penext; pool_entry_t *pe, *penext;