mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-23 11:59:20 +07:00
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: Jovi Zhang <bookjovi@gmail.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
b9f810570d
commit
43b7c3f051
@ -3262,7 +3262,7 @@ static int buf_to_pages_noslab(const void *buf, size_t buflen,
|
||||
spages = pages;
|
||||
|
||||
do {
|
||||
len = min(PAGE_CACHE_SIZE, buflen);
|
||||
len = min_t(size_t, PAGE_CACHE_SIZE, buflen);
|
||||
newpage = alloc_page(GFP_KERNEL);
|
||||
|
||||
if (newpage == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user