diff options
| author | ZhangGuoDong <zhangguodong@kylinos.cn> | 2025-11-21 15:44:49 -0600 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-11-30 21:11:44 -0600 |
| commit | 36c31540cf5279262bfd148d8537cd04866499f2 (patch) | |
| tree | f31f6f5dee8ec63ec0ecbbae2a8fad810ae4a957 /fs/smb/server/smb_common.h | |
| parent | 34cf191bb6a349dc88ec2c4f6355fe006ac669e0 (diff) | |
smb: move get_rfc1002_len() to common/smbglob.h
Rename get_rfc1002_length() to get_rfc1002_len(), then move duplicate
definitions to common header file.
Co-developed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: ZhangGuoDong <zhangguodong@kylinos.cn>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/server/smb_common.h')
| -rw-r--r-- | fs/smb/server/smb_common.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/smb/server/smb_common.h b/fs/smb/server/smb_common.h index 93f28defef3e..ff3e441da125 100644 --- a/fs/smb/server/smb_common.h +++ b/fs/smb/server/smb_common.h @@ -423,9 +423,4 @@ unsigned int ksmbd_server_side_copy_max_chunk_size(void); unsigned int ksmbd_server_side_copy_max_total_size(void); bool is_asterisk(char *p); __le32 smb_map_generic_desired_access(__le32 daccess); - -static inline unsigned int get_rfc1002_len(void *buf) -{ - return be32_to_cpu(*((__be32 *)buf)) & 0xffffff; -} #endif /* __SMB_COMMON_H__ */ |