optee: Add __init/__exit annotations to module init/exit funcs
authorXiu Jianfeng <xiujianfeng@huawei.com>
Sat, 24 Sep 2022 09:28:20 +0000 (17:28 +0800)
committerJens Wiklander <jens.wiklander@linaro.org>
Tue, 11 Oct 2022 09:20:16 +0000 (11:20 +0200)
Add missing __init/__exit annotations to module init/exit funcs.

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/core.c

index daf07737c4fd4cbd2fe3be6ba842de710f824014..2a258bd3b6b5cc8f2123cfa203313c060c8a3e7f 100644 (file)
@@ -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();