提交 31fea48e 编写于 作者: T Tang Yizhou 提交者: Yang Yingliang

share_pool: Fix compilation error of do_mm_populate()

ascend inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4EUVI
CVE: NA

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

do_mm_populate() should return an error number.
Signed-off-by: NTang Yizhou <tangyizhou@huawei.com>
Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: NDing Tianhong <dingtianhong@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 a9a54758
...@@ -2448,9 +2448,10 @@ extern int do_mm_populate(struct mm_struct *mm, unsigned long addr, unsigned lon ...@@ -2448,9 +2448,10 @@ extern int do_mm_populate(struct mm_struct *mm, unsigned long addr, unsigned lon
int ignore_errors); int ignore_errors);
#else #else
static inline void mm_populate(unsigned long addr, unsigned long len) {} static inline void mm_populate(unsigned long addr, unsigned long len) {}
int do_mm_populate(struct mm_struct *mm, unsigned long addr, unsigned long len, static inline int do_mm_populate(struct mm_struct *mm, unsigned long addr,
int ignore_errors) unsigned long len, int ignore_errors)
{ {
return -EPERM;
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册