[PATCH] powerpc: pasemi: add __init/__exit annotations to module init/exit funcs

Xiu Jianfeng posted 1 patch 3 years, 6 months ago
arch/powerpc/platforms/pasemi/gpio_mdio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] powerpc: pasemi: add __init/__exit annotations to module init/exit funcs
Posted by Xiu Jianfeng 3 years, 6 months ago
Add missing __init/__exit annotations to module init/exit funcs.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
---
 arch/powerpc/platforms/pasemi/gpio_mdio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/platforms/pasemi/gpio_mdio.c b/arch/powerpc/platforms/pasemi/gpio_mdio.c
index bf300167ad6b..913b77b92cea 100644
--- a/arch/powerpc/platforms/pasemi/gpio_mdio.c
+++ b/arch/powerpc/platforms/pasemi/gpio_mdio.c
@@ -294,7 +294,7 @@ static struct platform_driver gpio_mdio_driver =
 	},
 };
 
-static int gpio_mdio_init(void)
+static int __init gpio_mdio_init(void)
 {
 	struct device_node *np;
 
@@ -314,7 +314,7 @@ static int gpio_mdio_init(void)
 }
 module_init(gpio_mdio_init);
 
-static void gpio_mdio_exit(void)
+static void __exit gpio_mdio_exit(void)
 {
 	platform_driver_unregister(&gpio_mdio_driver);
 	if (gpio_regs)
-- 
2.17.1
Re: [PATCH] powerpc: pasemi: add __init/__exit annotations to module init/exit funcs
Posted by Michael Ellerman 3 years, 4 months ago
On Sun, 11 Sep 2022 16:43:44 +0800, Xiu Jianfeng wrote:
> Add missing __init/__exit annotations to module init/exit funcs.
> 
> 

Applied to powerpc/next.

[1/1] powerpc: pasemi: add __init/__exit annotations to module init/exit funcs
      https://git.kernel.org/powerpc/c/d87a233717da400792fa601b29fa74a7d28e03c2

cheers