aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2022-08-05 11:15:44 -0500
committerSteve French <stfrench@microsoft.com>2022-08-05 11:24:12 -0500
commitea75a78c07d7f172062822b90fac8a9ac59773a3 (patch)
tree3ba6ba4212c6863169ce8e2c2af537df89afd768 /fs/cifs
parentcifs: remove "cifs_" prefix from init/destroy mids functions (diff)
downloadlinux-dev-ea75a78c07d7f172062822b90fac8a9ac59773a3.tar.xz
linux-dev-ea75a78c07d7f172062822b90fac8a9ac59773a3.zip
cifs: alloc_mid function should be marked as static
It is only used in transport.c. Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/cifsproto.h3
-rw-r--r--fs/cifs/transport.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h
index a3cb47619a0a..daaadffa2b88 100644
--- a/fs/cifs/cifsproto.h
+++ b/fs/cifs/cifsproto.h
@@ -78,9 +78,6 @@ extern char *build_wildcard_path_from_dentry(struct dentry *direntry);
extern char *cifs_compose_mount_options(const char *sb_mountdata,
const char *fullpath, const struct dfs_info3_param *ref,
char **devname);
-/* extern void renew_parental_timestamps(struct dentry *direntry);*/
-extern struct mid_q_entry *alloc_mid(const struct smb_hdr *,
- struct TCP_Server_Info *);
extern void delete_mid(struct mid_q_entry *mid);
extern void release_mid(struct mid_q_entry *mid);
extern void cifs_wake_up_task(struct mid_q_entry *mid);
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
index dc69ac9dad60..de7aeced7e16 100644
--- a/fs/cifs/transport.c
+++ b/fs/cifs/transport.c
@@ -38,7 +38,7 @@ cifs_wake_up_task(struct mid_q_entry *mid)
wake_up_process(mid->callback_data);
}
-struct mid_q_entry *
+static struct mid_q_entry *
alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server)
{
struct mid_q_entry *temp;