Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b796adfc authored by Winston Wen's avatar Winston Wen Committed by Greg Kroah-Hartman
Browse files

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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarWinston Wen <wentao@uniontech.com>
Reviewed-by: default avatarPaulo Alcantara <pc@manguebit.com>
Reviewed-by: default avatarChristian Brauner <brauner@kernel.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 35a9b057
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment