Skip to content

Commit ea75a78

Browse files
committed
cifs: alloc_mid function should be marked as static
It is only used in transport.c. Signed-off-by: Steve French <[email protected]>
1 parent f5fd3f2 commit ea75a78

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

fs/cifs/cifsproto.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ extern char *build_wildcard_path_from_dentry(struct dentry *direntry);
7878
extern char *cifs_compose_mount_options(const char *sb_mountdata,
7979
const char *fullpath, const struct dfs_info3_param *ref,
8080
char **devname);
81-
/* extern void renew_parental_timestamps(struct dentry *direntry);*/
82-
extern struct mid_q_entry *alloc_mid(const struct smb_hdr *,
83-
struct TCP_Server_Info *);
8481
extern void delete_mid(struct mid_q_entry *mid);
8582
extern void release_mid(struct mid_q_entry *mid);
8683
extern void cifs_wake_up_task(struct mid_q_entry *mid);

fs/cifs/transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ cifs_wake_up_task(struct mid_q_entry *mid)
3838
wake_up_process(mid->callback_data);
3939
}
4040

41-
struct mid_q_entry *
41+
static struct mid_q_entry *
4242
alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server)
4343
{
4444
struct mid_q_entry *temp;

0 commit comments

Comments
 (0)