[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220924005214.186304-1-xiujianfeng@huawei.com>
Date: Sat, 24 Sep 2022 08:52:14 +0800
From: Xiu Jianfeng <xiujianfeng@...wei.com>
To: <jk@...abs.org>, <joel@....id.au>, <alistair@...ple.id.au>,
<eajames@...ux.ibm.com>
CC: <linux-fsi@...ts.ozlabs.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] fsi: 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>
---
drivers/fsi/fsi-occ.c | 4 ++--
drivers/fsi/fsi-sbefifo.c | 4 ++--
drivers/fsi/fsi-scom.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/fsi/fsi-occ.c b/drivers/fsi/fsi-occ.c
index 8f7f602b909d..69273575f61f 100644
--- a/drivers/fsi/fsi-occ.c
+++ b/drivers/fsi/fsi-occ.c
@@ -719,12 +719,12 @@ static struct platform_driver occ_driver = {
.remove = occ_remove,
};
-static int occ_init(void)
+static int __init occ_init(void)
{
return platform_driver_register(&occ_driver);
}
-static void occ_exit(void)
+static void __exit occ_exit(void)
{
platform_driver_unregister(&occ_driver);
diff --git a/drivers/fsi/fsi-sbefifo.c b/drivers/fsi/fsi-sbefifo.c
index 5f93a53846aa..bf313689012a 100644
--- a/drivers/fsi/fsi-sbefifo.c
+++ b/drivers/fsi/fsi-sbefifo.c
@@ -1124,12 +1124,12 @@ static struct fsi_driver sbefifo_drv = {
}
};
-static int sbefifo_init(void)
+static int __init sbefifo_init(void)
{
return fsi_driver_register(&sbefifo_drv);
}
-static void sbefifo_exit(void)
+static void __exit sbefifo_exit(void)
{
fsi_driver_unregister(&sbefifo_drv);
}
diff --git a/drivers/fsi/fsi-scom.c b/drivers/fsi/fsi-scom.c
index bcb756dc9866..10f071255a85 100644
--- a/drivers/fsi/fsi-scom.c
+++ b/drivers/fsi/fsi-scom.c
@@ -605,12 +605,12 @@ static struct fsi_driver scom_drv = {
}
};
-static int scom_init(void)
+static int __init scom_init(void)
{
return fsi_driver_register(&scom_drv);
}
-static void scom_exit(void)
+static void __exit scom_exit(void)
{
fsi_driver_unregister(&scom_drv);
}
--
2.17.1
Powered by blists - more mailing lists