diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-11-21 18:22:36 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-18 11:30:21 +0100 |
commit | 61b8bf60eddb8858478534d450ff8561dc0db442 (patch) | |
tree | a5918848e89c2e5921ac9f7688b6494633ac0119 /drivers | |
parent | bb6ca4f0542ae3545522dad62a0faaf6c276790c (diff) | |
download | linux-stable-61b8bf60eddb8858478534d450ff8561dc0db442.tar.gz linux-stable-61b8bf60eddb8858478534d450ff8561dc0db442.tar.bz2 linux-stable-61b8bf60eddb8858478534d450ff8561dc0db442.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/ccree/cc_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ccree/cc_debugfs.c b/drivers/crypto/ccree/cc_debugfs.c index 5ca184e42483..3879f33fb59e 100644 --- a/drivers/crypto/ccree/cc_debugfs.c +++ b/drivers/crypto/ccree/cc_debugfs.c @@ -46,7 +46,7 @@ int __init cc_debugfs_global_init(void) return !cc_debugfs_dir; } -void __exit cc_debugfs_global_fini(void) +void cc_debugfs_global_fini(void) { debugfs_remove(cc_debugfs_dir); } |