提交 c50c91f0 编写于 作者: Y Yang Yingliang 提交者: Cheng Jian

sysfs: fix kabi broken when add sysfs_emit and sysfs_emit_at

hulk inclusion
category: bugfix
bugzilla: NA
CVE: CVE-2021-27365

---------------------------

It's introduced by 5bf67c8c2d947 ("sysfs: Add sysfs_emit and...").
Fix it by remove include mm.h.
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Nzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NCheng Jian <cj.chengjian@huawei.com>
上级 86aa6b7c
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#include <linux/list.h> #include <linux/list.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <linux/mm.h>
#include "sysfs.h" #include "sysfs.h"
#include "../kernfs/kernfs-internal.h" #include "../kernfs/kernfs-internal.h"
...@@ -560,6 +559,7 @@ void sysfs_remove_bin_file(struct kobject *kobj, ...@@ -560,6 +559,7 @@ void sysfs_remove_bin_file(struct kobject *kobj,
} }
EXPORT_SYMBOL_GPL(sysfs_remove_bin_file); EXPORT_SYMBOL_GPL(sysfs_remove_bin_file);
#define offset_in_page(p) ((unsigned long)(p) & ~PAGE_MASK)
/** /**
* sysfs_emit - scnprintf equivalent, aware of PAGE_SIZE buffer. * sysfs_emit - scnprintf equivalent, aware of PAGE_SIZE buffer.
* @buf: start of PAGE_SIZE buffer. * @buf: start of PAGE_SIZE buffer.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册