mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 18:08:20 +00:00
smb3: fix compiler warning in reparse code
utf8s_to_utf16s() specifies pwcs as a wchar_t pointer (whether big endian or little endian is passed in as an additional parm), so to remove a distracting compile warning it needs to be cast as (wchar_t *) in parse_reparse_wsl_symlink() as done by other callers. Fixes: 06a7adf318a3 ("cifs: Add support for parsing WSL-style symlinks") Reviewed-by: Pali Rohár <pali@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
fac04efc5c
commit
6d44a78063
@ -676,7 +676,7 @@ static int parse_reparse_wsl_symlink(struct reparse_wsl_symlink_data_buffer *buf
|
||||
return -ENOMEM;
|
||||
symname_utf16_len = utf8s_to_utf16s(buf->PathBuffer, symname_utf8_len,
|
||||
UTF16_LITTLE_ENDIAN,
|
||||
symname_utf16, symname_utf8_len * 2);
|
||||
(wchar_t *) symname_utf16, symname_utf8_len * 2);
|
||||
if (symname_utf16_len < 0) {
|
||||
kfree(symname_utf16);
|
||||
return symname_utf16_len;
|
||||
|
Loading…
x
Reference in New Issue
Block a user