ARM64: reloc_test: add __init/__exit annotations to module init/exit funcs
authorXiu Jianfeng <xiujianfeng@huawei.com>
Sun, 11 Sep 2022 03:47:47 +0000 (11:47 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 29 Sep 2022 17:04:25 +0000 (18:04 +0100)
Add missing __init/__exit annotations to module init/exit funcs.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Link: https://lore.kernel.org/r/20220911034747.132098-1-xiujianfeng@huawei.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/reloc_test_core.c

index e87a2b7f20f613830daec851755813e7195bd1c0..99f2ffe9fc0576400fa03e593b9ae7658892031e 100644 (file)
@@ -48,7 +48,7 @@ static struct {
        { "R_AARCH64_PREL16",           relative_data16, (u64)&sym64_rel },
 };
 
-static int reloc_test_init(void)
+static int __init reloc_test_init(void)
 {
        int i;
 
@@ -67,7 +67,7 @@ static int reloc_test_init(void)
        return 0;
 }
 
-static void reloc_test_exit(void)
+static void __exit reloc_test_exit(void)
 {
 }