From 83f359245adc9c03ee0ededa2ff00b7dd9f82d2a Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Thu, 15 Aug 2024 09:08:43 -0700 Subject: [PATCH] FreeBSD: fix build without kernel option MAC Reviewed-by: Alexander Motin Reviewed-by: Mark Johnston Reviewed-by: Tony Hutter Signed-off-by: Gleb Smirnoff Closes #16446 --- module/os/freebsd/zfs/zfs_vnops_os.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/os/freebsd/zfs/zfs_vnops_os.c b/module/os/freebsd/zfs/zfs_vnops_os.c index 283f56963..01b964f98 100644 --- a/module/os/freebsd/zfs/zfs_vnops_os.c +++ b/module/os/freebsd/zfs/zfs_vnops_os.c @@ -6125,7 +6125,9 @@ zfs_freebsd_copy_file_range(struct vop_copy_file_range_args *ap) error == EOPNOTSUPP) goto bad_locked_fallback; *ap->a_lenp = (size_t)len; +#ifdef MAC out_locked: +#endif if (invp != outvp) VOP_UNLOCK(invp); VOP_UNLOCK(outvp);