Skip to content

Commit

Permalink
crypto: ccree - Make cc_debugfs_global_fini() available for module in…
Browse files Browse the repository at this point in the history
…it function

[ Upstream commit 8e96729 ]

ccree_init() calls cc_debugfs_global_fini(), the former is an init
function and the latter an exit function though.

A modular build emits:

	WARNING: modpost: drivers/crypto/ccree/ccree.o: section mismatch in reference: init_module (section: .init.text) -> cc_debugfs_global_fini (section: .exit.text)

(with CONFIG_DEBUG_SECTION_MISMATCH=y).

Fixes: 4f1c596 ("crypto: ccree - Remove debugfs when platform_driver_register failed")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Uwe Kleine-König authored and gregkh committed Dec 31, 2022
1 parent ed8b5ff commit d9dbd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/ccree/cc_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void __init cc_debugfs_global_init(void)
cc_debugfs_dir = debugfs_create_dir("ccree", NULL);
}

void __exit cc_debugfs_global_fini(void)
void cc_debugfs_global_fini(void)
{
debugfs_remove(cc_debugfs_dir);
}
Expand Down

0 comments on commit d9dbd4c

Please sign in to comment.