linux-stable/fs/nls
Winston Wen 952af5cfd5 fs/nls: make load_nls() take a const parameter
[ Upstream commit c1ed39ec11 ]

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>
2023-09-13 09:42:22 +02:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
mac-celtic.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
mac-centeuro.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
mac-croatian.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
mac-cyrillic.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
mac-gaelic.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
mac-greek.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
mac-iceland.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
mac-inuit.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
mac-roman.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
mac-romanian.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
mac-turkish.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nls_ascii.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_base.c fs/nls: make load_nls() take a const parameter 2023-09-13 09:42:22 +02:00
nls_cp437.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp737.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp775.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp850.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp852.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp855.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp857.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp860.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp861.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp862.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp863.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp864.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp865.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp866.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp869.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp874.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp932.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp936.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp949.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp950.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp1250.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp1251.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_cp1255.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_euc-jp.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_iso8859-1.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_iso8859-2.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_iso8859-3.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_iso8859-4.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_iso8859-5.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_iso8859-6.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_iso8859-7.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_iso8859-9.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_iso8859-13.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_iso8859-14.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_iso8859-15.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_koi8-r.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_koi8-ru.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_koi8-u.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00
nls_utf8.c nls: have register_nls() set ->owner 2014-01-25 03:14:05 -05:00