projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8278f1c
)
mm/hwpoison: add __init/__exit annotations to module init/exit funcs
author
Xiu Jianfeng
<xiujianfeng@huawei.com>
Tue, 6 Sep 2022 09:35:30 +0000
(17:35 +0800)
committer
Andrew Morton
<akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:05 +0000
(14:03 -0700)
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>
Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hwpoison-inject.c
patch
|
blob
|
history
diff --git
a/mm/hwpoison-inject.c
b/mm/hwpoison-inject.c
index
65e242b
..
d0548e3
100644
(file)
--- a/
mm/hwpoison-inject.c
+++ b/
mm/hwpoison-inject.c
@@
-63,13
+63,13
@@
static int hwpoison_unpoison(void *data, u64 val)
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);