]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
VFS: vxfs: ifdef out vxfs_sys_acl_set_fd
authorNoel Power <noel.power@suse.com>
Thu, 10 Jun 2021 13:52:04 +0000 (14:52 +0100)
committerNoel Power <npower@samba.org>
Fri, 11 Jun 2021 09:30:53 +0000 (09:30 +0000)
as the sys_acl_set_fd_fn definition for vxfs_sys_acl_set_fd is ifdef'ed
out we also need ifdef out the vxfs_sys_acl_set_fd implementation itself
otherwise we get the following error.

source3/modules/vfs_vxfs.c:484:12: error: ‘vxfs_sys_acl_set_fd’ defined but not used [-Werror=unused-function]
 static int vxfs_sys_acl_set_fd(vfs_handle_struct *handle,

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_vxfs.c

index 0c2d01edd414009002c819da22a57a9f1225c0a0..9e663aef7f51ed5e686d299574e5afec35b9d20e 100644 (file)
@@ -481,6 +481,7 @@ out:
        return ret;
 }
 
+#ifdef VXFS_ACL_SHARE
 static int vxfs_sys_acl_set_fd(vfs_handle_struct *handle,
                               struct files_struct *fsp,
                               SMB_ACL_TYPE_T type,
@@ -493,6 +494,7 @@ static int vxfs_sys_acl_set_fd(vfs_handle_struct *handle,
 
        return SMB_VFS_NEXT_SYS_ACL_SET_FD(handle, fsp, type, theacl);
 }
+#endif
 
 static int vxfs_fset_xattr(struct vfs_handle_struct *handle,
                           struct files_struct *fsp, const char *name,