@@ -263,9 +263,6 @@ extern void cifs_move_llist(struct list_head *source, struct list_head *dest);
extern void cifs_free_llist(struct list_head *llist);
extern void cifs_del_lock_waiters(struct cifsLockInfo *lock);
-extern int cifs_tree_connect(const unsigned int xid,
- struct cifs_tcon *tcon,
- const struct nls_table *nlsc);
extern int cifs_connect_session_locked(const unsigned int xid,
struct cifs_ses *ses,
struct nls_table *nls_info,
@@ -5291,9 +5291,9 @@ cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
}
#ifdef CONFIG_CIFS_DFS_UPCALL
-int cifs_tree_connect(const unsigned int xid,
- struct cifs_tcon *tcon,
- const struct nls_table *nlsc)
+static int cifs_tree_connect(const unsigned int xid,
+ struct cifs_tcon *tcon,
+ const struct nls_table *nlsc)
{
const struct smb_version_operations *ops = tcon->ses->server->ops;
int rc;
@@ -5365,9 +5365,9 @@ int cifs_tree_connect(const unsigned int xid,
return rc;
}
#else
-int cifs_tree_connect(const unsigned int xid,
- struct cifs_tcon *tcon,
- const struct nls_table *nlsc)
+static int cifs_tree_connect(const unsigned int xid,
+ struct cifs_tcon *tcon,
+ const struct nls_table *nlsc)
{
const struct smb_version_operations *ops = tcon->ses->server->ops;
return ops->tree_connect(xid, tcon->ses, tcon->treeName, tcon, nlsc);
Signed-off-by: Stefan Metzmacher <metze@samba.org> --- fs/cifs/cifsproto.h | 3 --- fs/cifs/connect.c | 12 ++++++------ 2 files changed, 6 insertions(+), 9 deletions(-)