diff options
author | Jovi Zhang <bookjovi@gmail.com> | 2011-03-02 18:19:37 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-03-10 15:04:56 -0500 |
commit | 43b7c3f051dea504afccc39bcb56d8e26c2e0b77 (patch) | |
tree | 6d031d1804acf9a5abeeb6b1597cb6821f96e493 /fs | |
parent | b9f810570d9cc13177128e11a74e22d37aa68a1a (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index d1ed67145cf3..b07d4e23b876 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -3262,7 +3262,7 @@ static int buf_to_pages_noslab(const void *buf, size_t buflen, | |||
3262 | spages = pages; | 3262 | spages = pages; |
3263 | 3263 | ||
3264 | do { | 3264 | do { |
3265 | len = min(PAGE_CACHE_SIZE, buflen); | 3265 | len = min_t(size_t, PAGE_CACHE_SIZE, buflen); |
3266 | newpage = alloc_page(GFP_KERNEL); | 3266 | newpage = alloc_page(GFP_KERNEL); |
3267 | 3267 | ||
3268 | if (newpage == NULL) | 3268 | if (newpage == NULL) |