Skip to content

Commit 6d44a78

Browse files
committed
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: 06a7adf ("cifs: Add support for parsing WSL-style symlinks") Reviewed-by: Pali Rohár <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent fac04ef commit 6d44a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/reparse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ static int parse_reparse_wsl_symlink(struct reparse_wsl_symlink_data_buffer *buf
676676
return -ENOMEM;
677677
symname_utf16_len = utf8s_to_utf16s(buf->PathBuffer, symname_utf8_len,
678678
UTF16_LITTLE_ENDIAN,
679-
symname_utf16, symname_utf8_len * 2);
679+
(wchar_t *) symname_utf16, symname_utf8_len * 2);
680680
if (symname_utf16_len < 0) {
681681
kfree(symname_utf16);
682682
return symname_utf16_len;

0 commit comments

Comments
 (0)