2022-09-11 04:41:59

by Xiu Jianfeng

[permalink] [raw]
Subject: [PATCH] x86: platform: add __init/__exit annotations to module init/exit funcs

Add missing __init/__exit annotations to module init/exit funcs.

Signed-off-by: Xiu Jianfeng <[email protected]>
---
arch/x86/platform/iris/iris.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/platform/iris/iris.c b/arch/x86/platform/iris/iris.c
index b42bfdab01a9..d3381340c5f3 100644
--- a/arch/x86/platform/iris/iris.c
+++ b/arch/x86/platform/iris/iris.c
@@ -88,7 +88,7 @@ static struct resource iris_resources[] = {

static struct platform_device *iris_device;

-static int iris_init(void)
+static int __init iris_init(void)
{
int ret;
if (force != 1) {
@@ -112,7 +112,7 @@ static int iris_init(void)
return 0;
}

-static void iris_exit(void)
+static void __exit iris_exit(void)
{
platform_device_unregister(iris_device);
platform_driver_unregister(&iris_driver);
--
2.17.1