]> www.infradead.org Git - users/jedix/linux-maple.git/commit
smb3: fix compiler warning in reparse code
authorSteve French <stfrench@microsoft.com>
Mon, 9 Dec 2024 17:25:04 +0000 (11:25 -0600)
committerSteve French <stfrench@microsoft.com>
Mon, 9 Dec 2024 21:20:58 +0000 (15:20 -0600)
commit6d44a780635b9b3fb6e20f366ee7750a9adfa884
tree11e2a13300f6e72ae13e9bb210d353cf25e39902
parentfac04efc5c793dccbd07e2d59af9f90b7fc0dca4
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>
fs/smb/client/reparse.c