CHECK /home/smfrench/cifs-2.6/fs/cifs/connect.c /home/smfrench/cifs-2.6/fs/cifs/connect.c:4137:5: warning: symbol '__tree_connect_dfs_target' was not declared. Should it be static? /home/smfrench/cifs-2.6/fs/cifs/connect.c:4236:5: warning: symbol 'tree_connect_dfs_target' was not declared. Should it be static? -- Thanks, Steve
From c14a9424dc360a9125cb4e7558bafe9426bc05f1 Mon Sep 17 00:00:00 2001 From: Steve French <stfrench@xxxxxxxxxxxxx> Date: Wed, 10 Nov 2021 03:09:52 -0600 Subject: [PATCH] smb3: remove trivial dfs compile warning Fix warning caused by recent changes to the dfs code: symbol 'tree_connect_dfs_target' was not declared. Should it be static? Cc: Paulo Alcantara (SUSE) <pc@xxxxxx> Signed-off-by: Steve French <stfrench@xxxxxxxxxxxxx> --- fs/cifs/connect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index c07d5915b9b0..f645f994a523 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -4134,7 +4134,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) { @@ -4233,7 +4233,7 @@ int __tree_connect_dfs_target(const unsigned int xid, struct cifs_tcon *tcon, 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) { -- 2.32.0