diff options
| author | Steve French <stfrench@microsoft.com> | 2024-12-09 11:25:04 -0600 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2024-12-09 11:36:23 -0600 |
| commit | 0096f8e57b4b6e503f0abeb0a79e2b1a77157a53 (patch) | |
| tree | 52ef775f4a215ff89029aa41f11d6604a77b7e80 | |
| parent | f403d0dc9c3386012b9fd1695f2ca762090e060b (diff) | |
| download | linux-0096f8e57b4b6e503f0abeb0a79e2b1a77157a53.tar.gz linux-0096f8e57b4b6e503f0abeb0a79e2b1a77157a53.tar.bz2 linux-0096f8e57b4b6e503f0abeb0a79e2b1a77157a53.zip | |
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")
Cc: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
| -rw-r--r-- | fs/smb/client/reparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/reparse.c b/fs/smb/client/reparse.c index 50b1aba20008..d88b41133e00 100644 --- a/fs/smb/client/reparse.c +++ b/fs/smb/client/reparse.c @@ -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; |
