cifs: alloc_mid function should be marked as static
authorSteve French <stfrench@microsoft.com>
Fri, 5 Aug 2022 16:15:44 +0000 (11:15 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 5 Aug 2022 16:24:12 +0000 (11:24 -0500)
It is only used in transport.c.

Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsproto.h
fs/cifs/transport.c

index a3cb47619a0adb6479539e1788a2675711323625..daaadffa2b88fa46d595eec27d97c51fd3899488 100644 (file)
@@ -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);
index dc69ac9dad608fd490418bd1589532ee7daead47..de7aeced7e16bbe952dd3f9aeb16385bcf40de8d 100644 (file)
@@ -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;