* + mm-hwpoison-add-__init-__exit-annotations-to-module-init-exit-funcs.patch added to mm-unstable branch
@ 2022-09-07 22:52 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-09-07 22:52 UTC (permalink / raw)
To: mm-commits, naoya.horiguchi, linmiaohe, xiujianfeng, akpm
The patch titled
Subject: mm/hwpoison: add __init/__exit annotations to module init/exit funcs
has been added to the -mm mm-unstable branch. Its filename is
mm-hwpoison-add-__init-__exit-annotations-to-module-init-exit-funcs.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-hwpoison-add-__init-__exit-annotations-to-module-init-exit-funcs.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Xiu Jianfeng <xiujianfeng@huawei.com>
Subject: mm/hwpoison: add __init/__exit annotations to module init/exit funcs
Date: Tue, 6 Sep 2022 17:35:30 +0800
Add missing __init/__exit annotations to module init/exit funcs.
Link: https://lkml.kernel.org/r/20220906093530.243262-1-xiujianfeng@huawei.com
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Naoya Horiguchi <naoya.horiguchi@nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/hwpoison-inject.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/mm/hwpoison-inject.c~mm-hwpoison-add-__init-__exit-annotations-to-module-init-exit-funcs
+++ a/mm/hwpoison-inject.c
@@ -63,13 +63,13 @@ static int hwpoison_unpoison(void *data,
DEFINE_DEBUGFS_ATTRIBUTE(hwpoison_fops, NULL, hwpoison_inject, "%lli\n");
DEFINE_DEBUGFS_ATTRIBUTE(unpoison_fops, NULL, hwpoison_unpoison, "%lli\n");
-static void pfn_inject_exit(void)
+static void __exit pfn_inject_exit(void)
{
hwpoison_filter_enable = 0;
debugfs_remove_recursive(hwpoison_dir);
}
-static int pfn_inject_init(void)
+static int __init pfn_inject_init(void)
{
hwpoison_dir = debugfs_create_dir("hwpoison", NULL);
_
Patches currently in -mm which might be from xiujianfeng@huawei.com are
mm-hwpoison-add-__init-__exit-annotations-to-module-init-exit-funcs.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-07 22:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-07 22:52 + mm-hwpoison-add-__init-__exit-annotations-to-module-init-exit-funcs.patch added to mm-unstable branch Andrew Morton
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.