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)
committerSteve French <stfrench@microsoft.com>
Tue, 25 Jul 2023 05:30:02 +0000 (00:30 -0500)
commitc1ed39ec116272935528ca9b348b8ee79b0791da
tree5afa2eaa4b3905e8a02c1fff0d086db816f87c15
parent6eaae198076080886b9e7d57f4ae06fa782f90ef
fs/nls: make load_nls() take a const parameter

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>
fs/nls/nls_base.c
include/linux/nls.h