]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs/nls: make load_nls() take a const parameter
authorWinston Wen <wentao@uniontech.com>
Mon, 24 Jul 2023 02:10:56 +0000 (10:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:22:27 +0000 (12:22 +0200)
commit5b64fc2471f915b1ab39283650863335bfeb1354
tree50c1bdb6011597c7260886918de19ce31841417d
parentf85908f6bfd23f403b196df2967c1bb9b42f7ae1
fs/nls: make load_nls() take a const parameter

[ Upstream commit c1ed39ec116272935528ca9b348b8ee79b0791da ]

load_nls() take a char * parameter, use it to find nls module in list or
construct the module name to load it.

This change make load_nls() take a const parameter, so we don't need do
some cast like this:

        ses->local_nls = load_nls((char *)ctx->local_nls->charset);

Suggested-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Winston Wen <wentao@uniontech.com>
Reviewed-by: Paulo Alcantara <pc@manguebit.com>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nls/nls_base.c
include/linux/nls.h