]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/cifs/netmisc.c
CIFS: Move readdir code to ops struct
[mirror_ubuntu-bionic-kernel.git] / fs / cifs / netmisc.c
index 581c225f7f50b3ae5ac4f4915b6b229c22432fd7..e7bab3be5cf9f074e988fc24d056e8e3f8d7a4c9 100644 (file)
@@ -913,8 +913,9 @@ map_smb_to_linux_error(char *buf, bool logErr)
  * portion, the number of word parameters and the data portion of the message
  */
 unsigned int
-smbCalcSize(struct smb_hdr *ptr)
+smbCalcSize(void *buf)
 {
+       struct smb_hdr *ptr = (struct smb_hdr *)buf;
        return (sizeof(struct smb_hdr) + (2 * ptr->WordCount) +
                2 /* size of the bcc field */ + get_bcc(ptr));
 }