aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorMark Johnston <[email protected]>2023-12-27 15:17:53 -0500
committerGitHub <[email protected]>2023-12-27 12:17:53 -0800
commit07e95b4670dc421ec726a2b4efa97a22fe572005 (patch)
tree134271a09ef92fb67fb533b35086005aec7f5819 /cmd
parent4cf4bc7334acf145daf6f7f894fbb333710c1cc9 (diff)
Fix the FreeBSD userspace build (#15716)
- Mark some parameters to zpool_power*() as unused. - Add a stub zpool_disk_wait(). Fixes: a9520e6e5 ("zpool: Add slot power control, print power status") Signed-off-by: Mark Johnston <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Tony Hutter <[email protected]>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/zpool/os/freebsd/zpool_vdev_os.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/zpool/os/freebsd/zpool_vdev_os.c b/cmd/zpool/os/freebsd/zpool_vdev_os.c
index 9dd733989..c57c689af 100644
--- a/cmd/zpool/os/freebsd/zpool_vdev_os.c
+++ b/cmd/zpool/os/freebsd/zpool_vdev_os.c
@@ -128,6 +128,9 @@ check_file(const char *file, boolean_t force, boolean_t isspare)
int
zpool_power_current_state(zpool_handle_t *zhp, char *vdev)
{
+
+ (void) zhp;
+ (void) vdev;
/* Enclosure slot power not supported on FreeBSD yet */
return (-1);
}
@@ -135,6 +138,10 @@ zpool_power_current_state(zpool_handle_t *zhp, char *vdev)
int
zpool_power(zpool_handle_t *zhp, char *vdev, boolean_t turn_on)
{
+
+ (void) zhp;
+ (void) vdev;
+ (void) turn_on;
/* Enclosure slot power not supported on FreeBSD yet */
return (ENOTSUP);
}