提交 f6163ee1 编写于 作者: D Ding Tianhong 提交者: Yang Yingliang

ascend: sharepool: fix compile warning when the sharepool is turned off

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

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

The is_vmalloc_sharepool agrument is defined of different type
when the sharepool is turned off, it will occur the warning like
this:

/include/linux/share_pool.h:462:20: note: expected ‘struct vm_struct *’
but argument is of type ‘long unsigned int’

Fix this warning.

Fixes: ad4504322d9e ("ascend: sharepool: don't enable the vmalloc to use hugepage default")
Signed-off-by: NDing Tianhong <dingtianhong@huawei.com>
Reviewed-by: NTang Yizhou <tangyizhou@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>
上级 2388a693
...@@ -466,12 +466,12 @@ static inline void *buff_vzalloc_hugepage_user(unsigned long size) ...@@ -466,12 +466,12 @@ static inline void *buff_vzalloc_hugepage_user(unsigned long size)
return NULL; return NULL;
} }
static inline bool is_vmalloc_huge(struct vm_struct *vm) static inline bool is_vmalloc_huge(unsigned long vm_flags)
{ {
return NULL; return NULL;
} }
static inline bool is_vmalloc_sharepool(struct vm_struct *vm) static inline bool is_vmalloc_sharepool(unsigned long vm_flags)
{ {
return NULL; return NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册