[PATCH] vfs: Use static_decl_vfs in all VFS modules

Christof Schmitt cs at samba.org
Fri Dec 15 22:35:49 UTC 2017


From fae858dca32293a88dd6b2977d46d069c0232d2b Mon Sep 17 00:00:00 2001
From: Christof Schmitt <cs at samba.org>
Date: Fri, 15 Dec 2017 15:32:12 -0700
Subject: [PATCH] vfs: Use static_decl_vfs in all VFS modules

Signed-off-by: Christof Schmitt <cs at samba.org>
---
 source3/modules/vfs_afsacl.c         | 2 +-
 source3/modules/vfs_aio_fork.c       | 2 +-
 source3/modules/vfs_aio_pthread.c    | 2 +-
 source3/modules/vfs_aixacl.c         | 2 +-
 source3/modules/vfs_aixacl2.c        | 2 +-
 source3/modules/vfs_btrfs.c          | 2 +-
 source3/modules/vfs_cacheprime.c     | 2 +-
 source3/modules/vfs_cap.c            | 2 +-
 source3/modules/vfs_ceph.c           | 2 +-
 source3/modules/vfs_commit.c         | 2 +-
 source3/modules/vfs_crossrename.c    | 2 +-
 source3/modules/vfs_default.c        | 2 +-
 source3/modules/vfs_default_quota.c  | 2 +-
 source3/modules/vfs_dfs_samba4.c     | 2 +-
 source3/modules/vfs_expand_msdfs.c   | 2 +-
 source3/modules/vfs_fake_acls.c      | 2 +-
 source3/modules/vfs_fake_perms.c     | 2 +-
 source3/modules/vfs_fileid.c         | 2 +-
 source3/modules/vfs_fruit.c          | 2 +-
 source3/modules/vfs_glusterfs.c      | 2 +-
 source3/modules/vfs_gpfs.c           | 2 +-
 source3/modules/vfs_hpuxacl.c        | 1 +
 source3/modules/vfs_hpuxacl.h        | 2 --
 source3/modules/vfs_linux_xfs_sgid.c | 2 +-
 source3/modules/vfs_media_harmony.c  | 2 +-
 source3/modules/vfs_netatalk.c       | 2 +-
 source3/modules/vfs_nfs4acl_xattr.c  | 2 +-
 source3/modules/vfs_offline.c        | 2 +-
 source3/modules/vfs_posixacl.c       | 2 +-
 source3/modules/vfs_prealloc.c       | 2 +-
 source3/modules/vfs_preopen.c        | 2 +-
 source3/modules/vfs_readahead.c      | 2 +-
 source3/modules/vfs_recycle.c        | 2 +-
 source3/modules/vfs_shadow_copy.c    | 2 +-
 source3/modules/vfs_shadow_copy2.c   | 2 +-
 source3/modules/vfs_shell_snap.c     | 2 +-
 source3/modules/vfs_snapper.c        | 2 +-
 source3/modules/vfs_solarisacl.c     | 2 +-
 source3/modules/vfs_streams_depot.c  | 2 +-
 source3/modules/vfs_streams_xattr.c  | 2 +-
 source3/modules/vfs_time_audit.c     | 2 +-
 source3/modules/vfs_tru64acl.c       | 2 +-
 source3/modules/vfs_tsmsm.c          | 2 +-
 source3/modules/vfs_unityed_media.c  | 2 +-
 source3/modules/vfs_vxfs.c           | 2 +-
 source3/modules/vfs_worm.c           | 2 +-
 source3/modules/vfs_xattr_tdb.c      | 2 +-
 source3/modules/vfs_zfsacl.c         | 2 +-
 48 files changed, 47 insertions(+), 48 deletions(-)

diff --git a/source3/modules/vfs_afsacl.c b/source3/modules/vfs_afsacl.c
index ce789f0..54c9344 100644
--- a/source3/modules/vfs_afsacl.c
+++ b/source3/modules/vfs_afsacl.c
@@ -1111,7 +1111,7 @@ static struct vfs_fn_pointers vfs_afsacl_fns = {
 	.sys_acl_blob_get_fd_fn = afsacl_sys_acl_blob_get_fd
 };
 
-NTSTATUS vfs_afsacl_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_afsacl_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "afsacl",
diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c
index a0b1429..5ad2dce 100644
--- a/source3/modules/vfs_aio_fork.c
+++ b/source3/modules/vfs_aio_fork.c
@@ -927,7 +927,7 @@ static struct vfs_fn_pointers vfs_aio_fork_fns = {
 	.fsync_recv_fn = aio_fork_fsync_recv,
 };
 
-NTSTATUS vfs_aio_fork_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_aio_fork_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_aio_pthread.c b/source3/modules/vfs_aio_pthread.c
index 1d9346c..d78dd11 100644
--- a/source3/modules/vfs_aio_pthread.c
+++ b/source3/modules/vfs_aio_pthread.c
@@ -496,7 +496,7 @@ static struct vfs_fn_pointers vfs_aio_pthread_fns = {
 #endif
 };
 
-NTSTATUS vfs_aio_pthread_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_aio_pthread_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_aixacl.c b/source3/modules/vfs_aixacl.c
index f6c42cb..86be759 100644
--- a/source3/modules/vfs_aixacl.c
+++ b/source3/modules/vfs_aixacl.c
@@ -190,7 +190,7 @@ static struct vfs_fn_pointers vfs_aixacl_fns = {
 	.sys_acl_delete_def_file_fn = aixacl_sys_acl_delete_def_file,
 };
 
-NTSTATUS vfs_aixacl_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_aixacl_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "aixacl",
diff --git a/source3/modules/vfs_aixacl2.c b/source3/modules/vfs_aixacl2.c
index 2e4b61e..d0cd2c1 100644
--- a/source3/modules/vfs_aixacl2.c
+++ b/source3/modules/vfs_aixacl2.c
@@ -566,7 +566,7 @@ static struct vfs_fn_pointers vfs_aixacl2_fns = {
 	.sys_acl_delete_def_file_fn = aixjfs2_sys_acl_delete_def_file
 };
 
-NTSTATUS vfs_aixacl2_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_aixacl2_init(TALLOC_CTX *ctx)
 {
         return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, AIXACL2_MODULE_NAME,
diff --git a/source3/modules/vfs_btrfs.c b/source3/modules/vfs_btrfs.c
index 13fd5e3..775e5f0 100644
--- a/source3/modules/vfs_btrfs.c
+++ b/source3/modules/vfs_btrfs.c
@@ -837,7 +837,7 @@ static struct vfs_fn_pointers btrfs_fns = {
 	.snap_delete_fn = btrfs_snap_delete,
 };
 
-NTSTATUS vfs_btrfs_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_btrfs_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_cacheprime.c b/source3/modules/vfs_cacheprime.c
index f06ece6..5a8b8e0 100644
--- a/source3/modules/vfs_cacheprime.c
+++ b/source3/modules/vfs_cacheprime.c
@@ -189,7 +189,7 @@ static struct vfs_fn_pointers vfs_cacheprime_fns = {
  * -------------------------------------------------------------------------
  */
 
-NTSTATUS vfs_cacheprime_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_cacheprime_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, MODULE,
diff --git a/source3/modules/vfs_cap.c b/source3/modules/vfs_cap.c
index e4d30cb..0684c79 100644
--- a/source3/modules/vfs_cap.c
+++ b/source3/modules/vfs_cap.c
@@ -1069,7 +1069,7 @@ static struct vfs_fn_pointers vfs_cap_fns = {
 	.fsetxattr_fn = cap_fsetxattr
 };
 
-NTSTATUS vfs_cap_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_cap_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "cap",
diff --git a/source3/modules/vfs_ceph.c b/source3/modules/vfs_ceph.c
index 9abd321..b4a7cee 100644
--- a/source3/modules/vfs_ceph.c
+++ b/source3/modules/vfs_ceph.c
@@ -1474,7 +1474,7 @@ static struct vfs_fn_pointers ceph_fns = {
 	.aio_force_fn = cephwrap_aio_force,
 };
 
-NTSTATUS vfs_ceph_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_ceph_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_commit.c b/source3/modules/vfs_commit.c
index 872b40b..aa9c87d 100644
--- a/source3/modules/vfs_commit.c
+++ b/source3/modules/vfs_commit.c
@@ -403,7 +403,7 @@ static struct vfs_fn_pointers vfs_commit_fns = {
         .ftruncate_fn = commit_ftruncate
 };
 
-NTSTATUS vfs_commit_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_commit_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, MODULE,
diff --git a/source3/modules/vfs_crossrename.c b/source3/modules/vfs_crossrename.c
index 4daa82c..f1cae9a 100644
--- a/source3/modules/vfs_crossrename.c
+++ b/source3/modules/vfs_crossrename.c
@@ -198,7 +198,7 @@ static struct vfs_fn_pointers vfs_crossrename_fns = {
 	.rename_fn = crossrename_rename
 };
 
-NTSTATUS vfs_crossrename_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_crossrename_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, MODULE,
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 3379493..073c790 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -3152,7 +3152,7 @@ static struct vfs_fn_pointers vfs_default_fns = {
 	.durable_reconnect_fn = vfswrap_durable_reconnect,
 };
 
-NTSTATUS vfs_default_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_default_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_default_quota.c b/source3/modules/vfs_default_quota.c
index c27681a..326eb8c 100644
--- a/source3/modules/vfs_default_quota.c
+++ b/source3/modules/vfs_default_quota.c
@@ -228,7 +228,7 @@ static struct vfs_fn_pointers vfs_default_quota_fns = {
 	.set_quota_fn = default_quota_set_quota
 };
 
-NTSTATUS vfs_default_quota_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_default_quota_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, DEFAULT_QUOTA_NAME,
diff --git a/source3/modules/vfs_dfs_samba4.c b/source3/modules/vfs_dfs_samba4.c
index 0bf1a29..d7f4edf 100644
--- a/source3/modules/vfs_dfs_samba4.c
+++ b/source3/modules/vfs_dfs_samba4.c
@@ -135,7 +135,7 @@ static struct vfs_fn_pointers vfs_dfs_samba4_fns = {
 	.get_dfs_referrals_fn = dfs_samba4_get_referrals,
 };
 
-NTSTATUS vfs_dfs_samba4_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_dfs_samba4_init(TALLOC_CTX *ctx)
 {
 	NTSTATUS ret;
diff --git a/source3/modules/vfs_expand_msdfs.c b/source3/modules/vfs_expand_msdfs.c
index 4cabc8f..598da08 100644
--- a/source3/modules/vfs_expand_msdfs.c
+++ b/source3/modules/vfs_expand_msdfs.c
@@ -228,7 +228,7 @@ static struct vfs_fn_pointers vfs_expand_msdfs_fns = {
 	.readlink_fn = expand_msdfs_readlink
 };
 
-NTSTATUS vfs_expand_msdfs_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_expand_msdfs_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "expand_msdfs",
diff --git a/source3/modules/vfs_fake_acls.c b/source3/modules/vfs_fake_acls.c
index 0f539d1..e6983d4 100644
--- a/source3/modules/vfs_fake_acls.c
+++ b/source3/modules/vfs_fake_acls.c
@@ -538,7 +538,7 @@ static struct vfs_fn_pointers vfs_fake_acls_fns = {
 	
 };
 
-NTSTATUS vfs_fake_acls_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_fake_acls_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "fake_acls",
diff --git a/source3/modules/vfs_fake_perms.c b/source3/modules/vfs_fake_perms.c
index 299bb48..0089186 100644
--- a/source3/modules/vfs_fake_perms.c
+++ b/source3/modules/vfs_fake_perms.c
@@ -100,7 +100,7 @@ static struct vfs_fn_pointers vfs_fake_perms_fns = {
 	.fstat_fn = fake_perms_fstat
 };
 
-NTSTATUS vfs_fake_perms_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_fake_perms_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "fake_perms",
diff --git a/source3/modules/vfs_fileid.c b/source3/modules/vfs_fileid.c
index bb0a79c..a7c4a49 100644
--- a/source3/modules/vfs_fileid.c
+++ b/source3/modules/vfs_fileid.c
@@ -258,7 +258,7 @@ static struct vfs_fn_pointers vfs_fileid_fns = {
 	.file_id_create_fn = fileid_file_id_create
 };
 
-NTSTATUS vfs_fileid_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_fileid_init(TALLOC_CTX *ctx)
 {
 	NTSTATUS ret;
diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c
index 6a47857..67dd571 100644
--- a/source3/modules/vfs_fruit.c
+++ b/source3/modules/vfs_fruit.c
@@ -6038,7 +6038,7 @@ static struct vfs_fn_pointers vfs_fruit_fns = {
 	.fset_nt_acl_fn = fruit_fset_nt_acl,
 };
 
-NTSTATUS vfs_fruit_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_fruit_init(TALLOC_CTX *ctx)
 {
 	NTSTATUS ret = smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "fruit",
diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c
index cffab7b..953c46a 100644
--- a/source3/modules/vfs_glusterfs.c
+++ b/source3/modules/vfs_glusterfs.c
@@ -1523,7 +1523,7 @@ static struct vfs_fn_pointers glusterfs_fns = {
 	.durable_reconnect_fn = NULL,
 };
 
-NTSTATUS vfs_glusterfs_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_glusterfs_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index e94c9cc..a0fd48f 100644
--- a/source3/modules/vfs_gpfs.c
+++ b/source3/modules/vfs_gpfs.c
@@ -2598,7 +2598,7 @@ static struct vfs_fn_pointers vfs_gpfs_fns = {
 	.ftruncate_fn = vfs_gpfs_ftruncate
 };
 
-NTSTATUS vfs_gpfs_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_gpfs_init(TALLOC_CTX *ctx)
 {
 	int ret;
diff --git a/source3/modules/vfs_hpuxacl.c b/source3/modules/vfs_hpuxacl.c
index 53e0ad6..42a2ab0 100644
--- a/source3/modules/vfs_hpuxacl.c
+++ b/source3/modules/vfs_hpuxacl.c
@@ -1167,6 +1167,7 @@ static struct vfs_fn_pointers hpuxacl_fns = {
 	.sys_acl_delete_def_file_fn = hpuxacl_sys_acl_delete_def_file,
 };
 
+static_decl_vfs;
 NTSTATUS vfs_hpuxacl_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "hpuxacl",
diff --git a/source3/modules/vfs_hpuxacl.h b/source3/modules/vfs_hpuxacl.h
index b1b9ec3..087dc6c 100644
--- a/source3/modules/vfs_hpuxacl.h
+++ b/source3/modules/vfs_hpuxacl.h
@@ -52,7 +52,5 @@ int hpuxacl_sys_acl_set_fd(vfs_handle_struct *handle,
 int hpuxacl_sys_acl_delete_def_file(vfs_handle_struct *handle,
 			const struct smb_filename *smb_fname);
 
-NTSTATUS vfs_hpuxacl_init(void);
-
 #endif
 
diff --git a/source3/modules/vfs_linux_xfs_sgid.c b/source3/modules/vfs_linux_xfs_sgid.c
index 841d7c3..ab41031 100644
--- a/source3/modules/vfs_linux_xfs_sgid.c
+++ b/source3/modules/vfs_linux_xfs_sgid.c
@@ -108,7 +108,7 @@ static struct vfs_fn_pointers linux_xfs_sgid_fns = {
 	.chmod_acl_fn = linux_xfs_sgid_chmod_acl,
 };
 
-NTSTATUS vfs_linux_xfs_sgid_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_linux_xfs_sgid_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_media_harmony.c b/source3/modules/vfs_media_harmony.c
index 43e6908..f0815d7 100644
--- a/source3/modules/vfs_media_harmony.c
+++ b/source3/modules/vfs_media_harmony.c
@@ -2353,7 +2353,7 @@ static struct vfs_fn_pointers vfs_mh_fns = {
 	/* aio operations */
 };
 
-NTSTATUS vfs_media_harmony_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_media_harmony_init(TALLOC_CTX *ctx)
 {
 	NTSTATUS ret = smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_netatalk.c b/source3/modules/vfs_netatalk.c
index 16c129d..206c3b6 100644
--- a/source3/modules/vfs_netatalk.c
+++ b/source3/modules/vfs_netatalk.c
@@ -483,7 +483,7 @@ static struct vfs_fn_pointers vfs_netatalk_fns = {
 	.lchown_fn = atalk_lchown,
 };
 
-NTSTATUS vfs_netatalk_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_netatalk_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "netatalk",
diff --git a/source3/modules/vfs_nfs4acl_xattr.c b/source3/modules/vfs_nfs4acl_xattr.c
index d301f25..0e52782 100644
--- a/source3/modules/vfs_nfs4acl_xattr.c
+++ b/source3/modules/vfs_nfs4acl_xattr.c
@@ -659,7 +659,7 @@ static struct vfs_fn_pointers nfs4acl_xattr_fns = {
 	.sys_acl_delete_def_file_fn = nfs4acl_xattr_fail__sys_acl_delete_def_file,
 };
 
-NTSTATUS vfs_nfs4acl_xattr_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_nfs4acl_xattr_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "nfs4acl_xattr",
diff --git a/source3/modules/vfs_offline.c b/source3/modules/vfs_offline.c
index e8cb439..d70fad4 100644
--- a/source3/modules/vfs_offline.c
+++ b/source3/modules/vfs_offline.c
@@ -49,7 +49,7 @@ static struct vfs_fn_pointers offline_fns = {
 	.fget_dos_attributes_fn = offline_fget_dos_attributes,
 };
 
-NTSTATUS vfs_offline_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_offline_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "offline",
diff --git a/source3/modules/vfs_posixacl.c b/source3/modules/vfs_posixacl.c
index 0cad9b6..83fb045 100644
--- a/source3/modules/vfs_posixacl.c
+++ b/source3/modules/vfs_posixacl.c
@@ -382,7 +382,7 @@ static struct vfs_fn_pointers posixacl_fns = {
 	.sys_acl_delete_def_file_fn = posixacl_sys_acl_delete_def_file,
 };
 
-NTSTATUS vfs_posixacl_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_posixacl_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "posixacl",
diff --git a/source3/modules/vfs_prealloc.c b/source3/modules/vfs_prealloc.c
index cec537c..04e77a3 100644
--- a/source3/modules/vfs_prealloc.c
+++ b/source3/modules/vfs_prealloc.c
@@ -213,7 +213,7 @@ static struct vfs_fn_pointers prealloc_fns = {
 	.connect_fn = prealloc_connect,
 };
 
-NTSTATUS vfs_prealloc_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_prealloc_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_preopen.c b/source3/modules/vfs_preopen.c
index 18b01e6..aac00c7 100644
--- a/source3/modules/vfs_preopen.c
+++ b/source3/modules/vfs_preopen.c
@@ -450,7 +450,7 @@ static struct vfs_fn_pointers vfs_preopen_fns = {
 	.open_fn = preopen_open
 };
 
-NTSTATUS vfs_preopen_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_preopen_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_readahead.c b/source3/modules/vfs_readahead.c
index 129ac1b..90a255d 100644
--- a/source3/modules/vfs_readahead.c
+++ b/source3/modules/vfs_readahead.c
@@ -178,7 +178,7 @@ static struct vfs_fn_pointers vfs_readahead_fns = {
  Module initialization boilerplate.
 *******************************************************************/
 
-NTSTATUS vfs_readahead_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_readahead_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "readahead",
diff --git a/source3/modules/vfs_recycle.c b/source3/modules/vfs_recycle.c
index 5032f26..e84f035 100644
--- a/source3/modules/vfs_recycle.c
+++ b/source3/modules/vfs_recycle.c
@@ -662,7 +662,7 @@ static struct vfs_fn_pointers vfs_recycle_fns = {
 	.unlink_fn = recycle_unlink
 };
 
-NTSTATUS vfs_recycle_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_recycle_init(TALLOC_CTX *ctx)
 {
 	NTSTATUS ret = smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "recycle",
diff --git a/source3/modules/vfs_shadow_copy.c b/source3/modules/vfs_shadow_copy.c
index 59f9e52..2aa9512 100644
--- a/source3/modules/vfs_shadow_copy.c
+++ b/source3/modules/vfs_shadow_copy.c
@@ -309,7 +309,7 @@ static struct vfs_fn_pointers vfs_shadow_copy_fns = {
 	.get_shadow_copy_data_fn = shadow_copy_get_shadow_copy_data,
 };
 
-NTSTATUS vfs_shadow_copy_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_shadow_copy_init(TALLOC_CTX *ctx)
 {
 	NTSTATUS ret = smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index 6a12309..b6745cf 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -3269,7 +3269,7 @@ static struct vfs_fn_pointers vfs_shadow_copy2_fns = {
 	.connectpath_fn = shadow_copy2_connectpath,
 };
 
-NTSTATUS vfs_shadow_copy2_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_shadow_copy2_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_shell_snap.c b/source3/modules/vfs_shell_snap.c
index 97bcf64..d1b7b8c 100644
--- a/source3/modules/vfs_shell_snap.c
+++ b/source3/modules/vfs_shell_snap.c
@@ -193,7 +193,7 @@ static struct vfs_fn_pointers shell_snap_fns = {
 	.snap_delete_fn = shell_snap_delete,
 };
 
-NTSTATUS vfs_shell_snap_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_shell_snap_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_snapper.c b/source3/modules/vfs_snapper.c
index 9dbb74f..6085150 100644
--- a/source3/modules/vfs_snapper.c
+++ b/source3/modules/vfs_snapper.c
@@ -3177,7 +3177,7 @@ static struct vfs_fn_pointers snapper_fns = {
 	.get_real_filename_fn = snapper_gmt_get_real_filename,
 };
 
-NTSTATUS vfs_snapper_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_snapper_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_solarisacl.c b/source3/modules/vfs_solarisacl.c
index 5c01139..54296fc 100644
--- a/source3/modules/vfs_solarisacl.c
+++ b/source3/modules/vfs_solarisacl.c
@@ -774,7 +774,7 @@ static struct vfs_fn_pointers solarisacl_fns = {
 	.sys_acl_delete_def_file_fn = solarisacl_sys_acl_delete_def_file,
 };
 
-NTSTATUS vfs_solarisacl_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_solarisacl_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "solarisacl",
diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c
index 04c1cdb..31625b3 100644
--- a/source3/modules/vfs_streams_depot.c
+++ b/source3/modules/vfs_streams_depot.c
@@ -1061,7 +1061,7 @@ static struct vfs_fn_pointers vfs_streams_depot_fns = {
 	.streaminfo_fn = streams_depot_streaminfo,
 };
 
-NTSTATUS vfs_streams_depot_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_streams_depot_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "streams_depot",
diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c
index c126a48..580ecd0 100644
--- a/source3/modules/vfs_streams_xattr.c
+++ b/source3/modules/vfs_streams_xattr.c
@@ -1698,7 +1698,7 @@ static struct vfs_fn_pointers vfs_streams_xattr_fns = {
 	.fset_nt_acl_fn = streams_xattr_fset_nt_acl,
 };
 
-NTSTATUS vfs_streams_xattr_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_streams_xattr_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "streams_xattr",
diff --git a/source3/modules/vfs_time_audit.c b/source3/modules/vfs_time_audit.c
index 8e08a7b..4a0ec89 100644
--- a/source3/modules/vfs_time_audit.c
+++ b/source3/modules/vfs_time_audit.c
@@ -2787,7 +2787,7 @@ static struct vfs_fn_pointers vfs_time_audit_fns = {
 };
 
 
-NTSTATUS vfs_time_audit_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_time_audit_init(TALLOC_CTX *ctx)
 {
 	smb_vfs_assert_all_fns(&vfs_time_audit_fns, "time_audit");
diff --git a/source3/modules/vfs_tru64acl.c b/source3/modules/vfs_tru64acl.c
index d44e56a..087f452 100644
--- a/source3/modules/vfs_tru64acl.c
+++ b/source3/modules/vfs_tru64acl.c
@@ -481,7 +481,7 @@ static struct vfs_fn_pointers tru64acl_fns = {
 	.sys_acl_delete_def_file_fn = tru64acl_sys_acl_delete_def_file,
 };
 
-NTSTATUS vfs_tru64acl_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_tru64acl_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "tru64acl",
diff --git a/source3/modules/vfs_tsmsm.c b/source3/modules/vfs_tsmsm.c
index b3493e7..99d11a5 100644
--- a/source3/modules/vfs_tsmsm.c
+++ b/source3/modules/vfs_tsmsm.c
@@ -608,7 +608,7 @@ static struct vfs_fn_pointers tsmsm_fns = {
 	.fget_dos_attributes_fn = tsmsm_fget_dos_attributes,
 };
 
-NTSTATUS vfs_tsmsm_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_tsmsm_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_unityed_media.c b/source3/modules/vfs_unityed_media.c
index f55061a..9859037 100644
--- a/source3/modules/vfs_unityed_media.c
+++ b/source3/modules/vfs_unityed_media.c
@@ -1941,7 +1941,7 @@ static struct vfs_fn_pointers vfs_um_fns = {
 	.setxattr_fn = um_setxattr,
 };
 
-NTSTATUS vfs_unityed_media_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_unityed_media_init(TALLOC_CTX *ctx)
 {
 	NTSTATUS ret = smb_register_vfs(SMB_VFS_INTERFACE_VERSION,
diff --git a/source3/modules/vfs_vxfs.c b/source3/modules/vfs_vxfs.c
index 335fd18..3bf3adc 100644
--- a/source3/modules/vfs_vxfs.c
+++ b/source3/modules/vfs_vxfs.c
@@ -951,7 +951,7 @@ static struct vfs_fn_pointers vfs_vxfs_fns = {
 	.fsetxattr_fn = vxfs_fset_xattr,
 };
 
-NTSTATUS vfs_vxfs_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_vxfs_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "vxfs",
diff --git a/source3/modules/vfs_worm.c b/source3/modules/vfs_worm.c
index f7dfe73..a956911 100644
--- a/source3/modules/vfs_worm.c
+++ b/source3/modules/vfs_worm.c
@@ -86,7 +86,7 @@ static struct vfs_fn_pointers vfs_worm_fns = {
 	.create_file_fn = vfs_worm_create_file,
 };
 
-NTSTATUS vfs_worm_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_worm_init(TALLOC_CTX *ctx)
 {
 	NTSTATUS ret;
diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c
index c9bb472..a8b3ee2 100644
--- a/source3/modules/vfs_xattr_tdb.c
+++ b/source3/modules/vfs_xattr_tdb.c
@@ -616,7 +616,7 @@ static struct vfs_fn_pointers vfs_xattr_tdb_fns = {
 	.connect_fn = xattr_tdb_connect,
 };
 
-NTSTATUS vfs_xattr_tdb_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_xattr_tdb_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "xattr_tdb",
diff --git a/source3/modules/vfs_zfsacl.c b/source3/modules/vfs_zfsacl.c
index 2e277c6..0bc4ba6 100644
--- a/source3/modules/vfs_zfsacl.c
+++ b/source3/modules/vfs_zfsacl.c
@@ -378,7 +378,7 @@ static struct vfs_fn_pointers zfsacl_fns = {
 	.fset_nt_acl_fn = zfsacl_fset_nt_acl,
 };
 
-NTSTATUS vfs_zfsacl_init(TALLOC_CTX *);
+static_decl_vfs;
 NTSTATUS vfs_zfsacl_init(TALLOC_CTX *ctx)
 {
 	return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "zfsacl",
-- 
1.8.3.1



More information about the samba-technical mailing list