From: Xiu Jianfeng Date: Sat, 24 Sep 2022 09:28:20 +0000 (+0800) Subject: optee: Add __init/__exit annotations to module init/exit funcs X-Git-Tag: v6.6.17~6038^2~18^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd52407221b4702af690456b2b6006fa6440e893;p=platform%2Fkernel%2Flinux-rpi.git optee: Add __init/__exit annotations to module init/exit funcs Add missing __init/__exit annotations to module init/exit funcs. Reviewed-by: Sumit Garg Signed-off-by: Xiu Jianfeng Signed-off-by: Jens Wiklander --- diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c index daf0773..2a258bd 100644 --- a/drivers/tee/optee/core.c +++ b/drivers/tee/optee/core.c @@ -188,7 +188,7 @@ void optee_remove_common(struct optee *optee) static int smc_abi_rc; static int ffa_abi_rc; -static int optee_core_init(void) +static int __init optee_core_init(void) { /* * The kernel may have crashed at the same time that all available @@ -210,7 +210,7 @@ static int optee_core_init(void) } module_init(optee_core_init); -static void optee_core_exit(void) +static void __exit optee_core_exit(void) { if (!smc_abi_rc) optee_smc_abi_unregister();