projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a818f53
)
mm/hwpoison-inject: use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs fops
author
zhong jiang
<zhongjiang@huawei.com>
Sun, 1 Dec 2019 01:57:35 +0000
(17:57 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sun, 1 Dec 2019 20:59:09 +0000
(12:59 -0800)
It is more clear to use DEFINE_DEBUGFS_ATTRIBUTE to define debugfs file
operation rather than DEFINE_SIMPLE_ATTRIBUTE.
Link:
http://lkml.kernel.org/r/1572403660-44718-1-git-send-email-zhongjiang@huawei.com
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hwpoison-inject.c
patch
|
blob
|
history
diff --git
a/mm/hwpoison-inject.c
b/mm/hwpoison-inject.c
index 5b7430bd83a6533065e4cba76fb18665d172ef80..e488876b168a6b635a97dd9cb3b72b13978c1f75 100644
(file)
--- a/
mm/hwpoison-inject.c
+++ b/
mm/hwpoison-inject.c
@@
-67,8
+67,8
@@
static int hwpoison_unpoison(void *data, u64 val)
return unpoison_memory(val);
}
-DEFINE_
SIMPLE
_ATTRIBUTE(hwpoison_fops, NULL, hwpoison_inject, "%lli\n");
-DEFINE_
SIMPLE
_ATTRIBUTE(unpoison_fops, NULL, hwpoison_unpoison, "%lli\n");
+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)
{