提交 43b7c3f0 编写于 作者: J Jovi Zhang 提交者: Trond Myklebust

nfs: fix compilation warning

this commit fix compilation warning as following:
linux-2.6/fs/nfs/nfs4proc.c:3265: warning: comparison of distinct pointer types lacks a cast
Signed-off-by: NJovi Zhang <bookjovi@gmail.com>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 b9f81057
...@@ -3262,7 +3262,7 @@ static int buf_to_pages_noslab(const void *buf, size_t buflen, ...@@ -3262,7 +3262,7 @@ static int buf_to_pages_noslab(const void *buf, size_t buflen,
spages = pages; spages = pages;
do { do {
len = min(PAGE_CACHE_SIZE, buflen); len = min_t(size_t, PAGE_CACHE_SIZE, buflen);
newpage = alloc_page(GFP_KERNEL); newpage = alloc_page(GFP_KERNEL);
if (newpage == NULL) if (newpage == NULL)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册