]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
smb3: remove trivial dfs compile warning
authorSteve French <stfrench@microsoft.com>
Wed, 10 Nov 2021 09:09:52 +0000 (03:09 -0600)
committerSteve French <stfrench@microsoft.com>
Wed, 10 Nov 2021 22:30:23 +0000 (16:30 -0600)
Fix warning caused by recent changes to the dfs code:

symbol 'tree_connect_dfs_target' was not declared. Should it be static?

Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c

index 1ace46e3f16f6e5a1cd059ca20180e86c17b81c5..df33659586037b933e16eb0b967d6f1d63ce8d56 100644 (file)
@@ -4139,7 +4139,7 @@ static int target_share_matches_server(struct TCP_Server_Info *server, const cha
        return rc;
 }
 
-int __tree_connect_dfs_target(const unsigned int xid, struct cifs_tcon *tcon,
+static int __tree_connect_dfs_target(const unsigned int xid, struct cifs_tcon *tcon,
                              struct cifs_sb_info *cifs_sb, char *tree,
                              struct dfs_cache_tgt_list *tl, struct dfs_info3_param *ref)
 {
@@ -4238,7 +4238,7 @@ out:
        return rc;
 }
 
-int tree_connect_dfs_target(const unsigned int xid, struct cifs_tcon *tcon,
+static int tree_connect_dfs_target(const unsigned int xid, struct cifs_tcon *tcon,
                            struct cifs_sb_info *cifs_sb, char *tree,
                            struct dfs_cache_tgt_list *tl, struct dfs_info3_param *ref)
 {