From: ruanjinjie <ruanjinjie@huawei.com>
To: <wim@linux-watchdog.org>, <linux@roeck-us.net>,
<linux-watchdog@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <ruanjinjie@huawei.com>
Subject: [PATCH -next] watchdog: Add __init/__exit annotations to module init/exit funcs
Date: Mon, 26 Sep 2022 20:04:29 +0800 [thread overview]
Message-ID: <20220926120429.1333802-1-ruanjinjie@huawei.com> (raw)
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
next reply other threads:[~2022-09-26 13:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-26 12:04 ruanjinjie [this message]
2022-09-26 13:35 ` [PATCH -next] watchdog: Add __init/__exit annotations to module init/exit funcs Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220926120429.1333802-1-ruanjinjie@huawei.com \
--to=ruanjinjie@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=wim@linux-watchdog.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.