]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ccree - Make cc_debugfs_global_fini() available for module init function
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 21 Nov 2022 17:22:36 +0000 (18:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:18 +0000 (11:41 +0100)
commitced1684d3fa129d3eaf0a39cbc57a937277e20db
treeab20d36e6a87d1c5d373087dc406030a9cfe83d0
parente47df60000a7b61c41abb689384d5c8b69e054ea
crypto: ccree - Make cc_debugfs_global_fini() available for module init function

[ Upstream commit 8e96729fc26c8967db45a3fb7a60387619f77a22 ]

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: 4f1c596df706 ("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>
drivers/crypto/ccree/cc_debugfs.c