lkml.org 
[lkml]   [2022]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next] watchdog: Add __init/__exit annotations to module init/exit funcs
Date
Add missing __init/__exit annotations to module init/exit funcs

Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
---
drivers/watchdog/cpu5wdt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/watchdog/cpu5wdt.c b/drivers/watchdog/cpu5wdt.c
index 688b112e712b..3e4534e8fa4b 100644
--- a/drivers/watchdog/cpu5wdt.c
+++ b/drivers/watchdog/cpu5wdt.c
@@ -242,7 +242,7 @@ static int cpu5wdt_init(void)
return err;
}

-static int cpu5wdt_init_module(void)
+static int __init cpu5wdt_init_module(void)
{
return cpu5wdt_init();
}
@@ -261,7 +261,7 @@ static void cpu5wdt_exit(void)

}

-static void cpu5wdt_exit_module(void)
+static void __exit cpu5wdt_exit_module(void)
{
cpu5wdt_exit();
}
--
2.25.1
\
 
 \ /
  Last update: 2022-09-26 15:54    [W:0.036 / U:0.884 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site