[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220911032215.111211-1-xiujianfeng@huawei.com>
Date: Sun, 11 Sep 2022 11:22:15 +0800
From: Xiu Jianfeng <xiujianfeng@...wei.com>
To: <arjan@...radead.org>
CC: <linux-kernel@...r.kernel.org>
Subject: [PATCH -next] backtrace-test: add __init/__exit annotations to module init/exit funcs
Add missing __init/__exit annotations to module init/exit funcs.
Signed-off-by: Xiu Jianfeng <xiujianfeng@...wei.com>
---
kernel/backtracetest.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/backtracetest.c b/kernel/backtracetest.c
index 370217dd7e39..c90b55cc4a07 100644
--- a/kernel/backtracetest.c
+++ b/kernel/backtracetest.c
@@ -60,7 +60,7 @@ static void backtrace_test_saved(void)
}
#endif
-static int backtrace_regression_test(void)
+static int __init backtrace_regression_test(void)
{
pr_info("====[ backtrace testing ]===========\n");
@@ -72,7 +72,7 @@ static int backtrace_regression_test(void)
return 0;
}
-static void exitf(void)
+static void __exit exitf(void)
{
}
--
2.17.1
Powered by blists - more mailing lists