summaryrefslogtreecommitdiffstats
path: root/fs/ksmbd/smb_common.h
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2021-11-03 00:08:44 +0100
committerSteve French <stfrench@microsoft.com>2021-11-12 02:22:58 +0100
commitcb4517201b8acdb5fd5314494aaf86c267f22345 (patch)
treeae6b4de2868277fe8b40186861d9e1bbc467c6f4 /fs/ksmbd/smb_common.h
parentksmbd: remove md4 leftovers (diff)
downloadlinux-cb4517201b8acdb5fd5314494aaf86c267f22345.tar.xz
linux-cb4517201b8acdb5fd5314494aaf86c267f22345.zip
ksmbd: remove smb2_buf_length in smb2_hdr
To move smb2_hdr to smbfs_common, This patch remove smb2_buf_length variable in smb2_hdr. Also, declare smb2_get_msg function to get smb2 request/response from ->request/response_buf. Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ksmbd/smb_common.h')
-rw-r--r--fs/ksmbd/smb_common.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ksmbd/smb_common.h b/fs/ksmbd/smb_common.h
index 6e79e7577f6b..35ca9b7d9979 100644
--- a/fs/ksmbd/smb_common.h
+++ b/fs/ksmbd/smb_common.h
@@ -477,12 +477,6 @@ struct smb_version_cmds {
int (*proc)(struct ksmbd_work *swork);
};
-static inline size_t
-smb2_hdr_size_no_buflen(struct smb_version_values *vals)
-{
- return vals->header_size - 4;
-}
-
int ksmbd_min_protocol(void);
int ksmbd_max_protocol(void);