* [PATCH -next] soc: fsl: dpio: Add __init/__exit annotations to module init/exit func
@ 2022-09-26 12:25 ruanjinjie
0 siblings, 0 replies; 2+ messages in thread
From: ruanjinjie @ 2022-09-26 12:25 UTC (permalink / raw)
To: Roy.Pledge, leoyang.li, linuxppc-dev, linux-kernel, linux-arm-kernel
Cc: ruanjinjie
Add missing __init/__exit annotations to module init/exit funcs
Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
---
drivers/soc/fsl/dpio/dpio-driver.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/soc/fsl/dpio/dpio-driver.c b/drivers/soc/fsl/dpio/dpio-driver.c
index 5a2edc48dd79..534e91dd929c 100644
--- a/drivers/soc/fsl/dpio/dpio-driver.c
+++ b/drivers/soc/fsl/dpio/dpio-driver.c
@@ -326,7 +326,7 @@ static struct fsl_mc_driver dpaa2_dpio_driver = {
.match_id_table = dpaa2_dpio_match_id_table
};
-static int dpio_driver_init(void)
+static int __init dpio_driver_init(void)
{
if (!zalloc_cpumask_var(&cpus_unused_mask, GFP_KERNEL))
return -ENOMEM;
@@ -335,7 +335,7 @@ static int dpio_driver_init(void)
return fsl_mc_driver_register(&dpaa2_dpio_driver);
}
-static void dpio_driver_exit(void)
+static void __exit dpio_driver_exit(void)
{
free_cpumask_var(cpus_unused_mask);
fsl_mc_driver_unregister(&dpaa2_dpio_driver);
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH -next] soc: fsl: dpio: Add __init/__exit annotations to module init/exit func
@ 2022-09-26 12:31 ruanjinjie
0 siblings, 0 replies; 2+ messages in thread
From: ruanjinjie @ 2022-09-26 12:31 UTC (permalink / raw)
To: Roy.Pledge, leoyang.li, linuxppc-dev, linux-kernel, linux-arm-kernel
Cc: ruanjinjie
Add missing __init/__exit annotations to module init/exit funcs
Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
---
drivers/soc/fsl/dpio/dpio-driver.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/soc/fsl/dpio/dpio-driver.c b/drivers/soc/fsl/dpio/dpio-driver.c
index 5a2edc48dd79..534e91dd929c 100644
--- a/drivers/soc/fsl/dpio/dpio-driver.c
+++ b/drivers/soc/fsl/dpio/dpio-driver.c
@@ -326,7 +326,7 @@ static struct fsl_mc_driver dpaa2_dpio_driver = {
.match_id_table = dpaa2_dpio_match_id_table
};
-static int dpio_driver_init(void)
+static int __init dpio_driver_init(void)
{
if (!zalloc_cpumask_var(&cpus_unused_mask, GFP_KERNEL))
return -ENOMEM;
@@ -335,7 +335,7 @@ static int dpio_driver_init(void)
return fsl_mc_driver_register(&dpaa2_dpio_driver);
}
-static void dpio_driver_exit(void)
+static void __exit dpio_driver_exit(void)
{
free_cpumask_var(cpus_unused_mask);
fsl_mc_driver_unregister(&dpaa2_dpio_driver);
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-26 12:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-26 12:25 [PATCH -next] soc: fsl: dpio: Add __init/__exit annotations to module init/exit func ruanjinjie
2022-09-26 12:31 ruanjinjie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).