From 748189b29c58cebe70e16ee82a7dfd2ace1955b9 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Thu, 10 Jun 2021 14:52:04 +0100 Subject: [PATCH] VFS: vxfs: ifdef out vxfs_sys_acl_set_fd MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Jeremy Allison --- source3/modules/vfs_vxfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/modules/vfs_vxfs.c b/source3/modules/vfs_vxfs.c index 0c2d01edd41..9e663aef7f5 100644 --- a/source3/modules/vfs_vxfs.c +++ b/source3/modules/vfs_vxfs.c @@ -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, -- 2.47.3