mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
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:
@@ -668,10 +668,10 @@ is_mpath_whole_disk(const char *path)
|
||||
|
||||
#else /* HAVE_LIBUDEV */
|
||||
|
||||
/* ARGSUSED */
|
||||
boolean_t
|
||||
is_mpath_whole_disk(const char *path)
|
||||
{
|
||||
(void) path;
|
||||
return (B_FALSE);
|
||||
}
|
||||
|
||||
|
||||
@@ -560,17 +560,17 @@ udev_device_is_ready(struct udev_device *dev)
|
||||
|
||||
#else
|
||||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
zfs_device_get_devid(struct udev_device *dev, char *bufptr, size_t buflen)
|
||||
{
|
||||
(void) dev, (void) bufptr, (void) buflen;
|
||||
return (ENODATA);
|
||||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
int
|
||||
zfs_device_get_physical(struct udev_device *dev, char *bufptr, size_t buflen)
|
||||
{
|
||||
(void) dev, (void) bufptr, (void) buflen;
|
||||
return (ENODATA);
|
||||
}
|
||||
|
||||
@@ -788,6 +788,8 @@ update_vdev_config_dev_sysfs_path(nvlist_t *nv, char *path)
|
||||
static int
|
||||
sysfs_path_pool_vdev_iter_f(void *hdl_data, nvlist_t *nv, void *data)
|
||||
{
|
||||
(void) hdl_data, (void) data;
|
||||
|
||||
char *path = NULL;
|
||||
if (nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path) != 0)
|
||||
return (1);
|
||||
|
||||
Reference in New Issue
Block a user